about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorJan-Erik Rediger <janerik@fnordig.de>2016-07-14 21:26:09 +0200
committerJan-Erik Rediger <janerik@fnordig.de>2016-07-29 10:29:44 +0200
commitdeafab19be13e8cd33e55b211ba8835488747a05 (patch)
tree4a65ef3f50047b55e2b41fb574ffe211211f4884 /src/rustllvm/PassWrapper.cpp
parent12ccff99bf254fe3721ad389953eb53b723872e4 (diff)
downloadrust-deafab19be13e8cd33e55b211ba8835488747a05.tar.gz
rust-deafab19be13e8cd33e55b211ba8835488747a05.zip
[LLVM-3.9] Increase PIELevel
Previously, we had a PositionIndependentExecutable, now we simply
choose the highest level. This should be equivalent.

:cake:
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
-rw-r--r--src/rustllvm/PassWrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rustllvm/PassWrapper.cpp b/src/rustllvm/PassWrapper.cpp
index edf83bf80d6..d4ef4e807f5 100644
--- a/src/rustllvm/PassWrapper.cpp
+++ b/src/rustllvm/PassWrapper.cpp
@@ -418,6 +418,6 @@ LLVMRustGetModuleDataLayout(LLVMModuleRef M) {
 extern "C" void
 LLVMRustSetModulePIELevel(LLVMModuleRef M) {
 #if LLVM_VERSION_MINOR >= 9
-    unwrap(M)->setPIELevel(PIELevel::Level::Default);
+    unwrap(M)->setPIELevel(PIELevel::Level::Large);
 #endif
 }