Skip to content

Commit

Permalink
Add necessary patches for LLVM 3.7(.1)
Browse files Browse the repository at this point in the history
And make ORC JIT the default for those LLVM versions. This does
not activate the new LLVM versions by default yet, to give time
to update everything on CI, etc., but doing the actual activation
is a one line change after this.
  • Loading branch information
Keno committed Jan 3, 2016
1 parent ba3d210 commit a38fa5f
Show file tree
Hide file tree
Showing 10 changed files with 597 additions and 3 deletions.
5 changes: 5 additions & 0 deletions deps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,11 @@ $(eval $(call LLVM_PATCH,win64-int128.llvm-3.3))
else ifeq ($(LLVM_VER),3.6.0)
$(eval $(call LLVM_PATCH,zerosign-llvm-3.6.0))
$(eval $(call LLVM_PATCH,win64-allocas-llvm-3.6.0))
else ifeq ($(LLVM_VER),3.7.0)
$(eval $(call LLVM_PATCH,llvm-3.7.0))
$(eval $(call LLVM_PATCH,llvm-3.7.1))
else ifeq ($(LLVM_VER),3.7.1)
$(eval $(call LLVM_PATCH,llvm-3.7.1))
endif # LLVM_VER

LLVM_BUILDDIR_withtype := $(LLVM_BUILD_DIR)/build_$(LLVM_BUILDTYPE)
Expand Down
1 change: 1 addition & 0 deletions deps/checksums/cfe-3.7.0.src.tar.xz/md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8f9d27335e7331cf0a4711e952f21f01
1 change: 1 addition & 0 deletions deps/checksums/cfe-3.7.0.src.tar.xz/sha512
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
099d34cb019ea548c6ee85efd22b150beba0aa92061394fa3e423b1ebfe4a5c98c0586e5d56fc5c39e2b1606d36db59f442c056cc59473e32df76c8790c9d0ae
1 change: 1 addition & 0 deletions deps/checksums/compiler-rt-3.7.0.src.tar.xz/md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
383c10affd513026f08936b5525523f5
1 change: 1 addition & 0 deletions deps/checksums/compiler-rt-3.7.0.src.tar.xz/sha512
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2ba6abb3d6ec7f1469cfe1d48fde2069e9a767d19144f80f05516ac63f353ace90a9df3e9d1c1f708f3c397aba0ec61b12e4f105b25a2e1cd26b25b0dd252bc9
1 change: 1 addition & 0 deletions deps/checksums/lldb-3.7.0.src.tar.xz/md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e5931740400d1dc3e7db4c7ba2ceff68
1 change: 1 addition & 0 deletions deps/checksums/lldb-3.7.0.src.tar.xz/sha512
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
52157782ef13e2c8b7b35ff3ccc05887195fe46ddb6bafcf0707a3c46c1e034734b55342b8dbfc46cae7a8c3cb1012345284e4bedb2344c5016b8d19a12e90df
29 changes: 29 additions & 0 deletions deps/llvm-3.7.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
commit 06e88db43d1ff367d03b731c9c1f4f69da78149b
Author: Keno Fischer <kfischer@college.harvard.edu>
Date: Fri Oct 9 17:24:54 2015 +0000

Clear SectionSymbols in MCContext::Reset

This was just forgotten when SectionSymbols was introduced and could cause
corruption if the MCContext was reused after Reset.

Reviewers: rafael

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D13547

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249854 91177308-0d34-0410-b5e6-96231b3b80d8

diff --git a/lib/MC/MCContext.cpp b/lib/MC/MCContext.cpp
index ff195d0..2160b4e 100644
--- a/lib/MC/MCContext.cpp
+++ b/lib/MC/MCContext.cpp
@@ -80,6 +80,7 @@ void MCContext::reset() {

UsedNames.clear();
Symbols.clear();
+ SectionSymbols.clear();
Allocator.Reset();
Instances.clear();
CompilationDir.clear();
Loading

0 comments on commit a38fa5f

Please sign in to comment.