diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Module/RaiseAsm.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Module/RaiseAsm.cpp b/lib/Module/RaiseAsm.cpp index 1f7f756f..b5526f35 100644 --- a/lib/Module/RaiseAsm.cpp +++ b/lib/Module/RaiseAsm.cpp @@ -100,7 +100,10 @@ bool RaiseAsmPass::runOnModule(Module &M) { llvm::errs() << "Warning: unable to select native target: " << Err << "\n"; TLI = 0; } else { -#if LLVM_VERSION_CODE >= LLVM_VERSION(3, 0) +#if LLVM_VERSION_CODE >= LLVM_VERSION(3, 1) + TargetMachine *TM = NativeTarget->createTargetMachine(HostTriple, "", "", + TargetOptions()); +#elif LLVM_VERSION_CODE >= LLVM_VERSION(3, 0) TargetMachine *TM = NativeTarget->createTargetMachine(HostTriple, "", ""); #else TargetMachine *TM = NativeTarget->createTargetMachine(HostTriple, ""); |