1
Fork 0

[LLVM-3.9] Increase PIELevel

Previously, we had a PositionIndependentExecutable, now we simply
choose the highest level. This should be equivalent.

🍰
This commit is contained in:
Jan-Erik Rediger 2016-07-14 21:26:09 +02:00
parent 12ccff99bf
commit deafab19be

View file

@ -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
}