Skip to content

Commit deafab1

Browse files
committed
[LLVM-3.9] Increase PIELevel
Previously, we had a PositionIndependentExecutable, now we simply choose the highest level. This should be equivalent. :cake:
1 parent 12ccff9 commit deafab1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rustllvm/PassWrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,6 @@ LLVMRustGetModuleDataLayout(LLVMModuleRef M) {
418418
extern "C" void
419419
LLVMRustSetModulePIELevel(LLVMModuleRef M) {
420420
#if LLVM_VERSION_MINOR >= 9
421-
unwrap(M)->setPIELevel(PIELevel::Level::Default);
421+
unwrap(M)->setPIELevel(PIELevel::Level::Large);
422422
#endif
423423
}

0 commit comments

Comments
 (0)