diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2011-12-08 20:44:45 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-12-08 20:44:45 +0000 |
commit | 2e08a4bf1c792d8743c3f61ea7aaaf2cd513829c (patch) | |
tree | e1978ada9304fc2d59c9c414d0f2291781b3f930 /lib | |
parent | 9644f84280ea5f5d6c94161860e7f1780e27f8bd (diff) | |
download | klee-2e08a4bf1c792d8743c3f61ea7aaaf2cd513829c.tar.gz |
Update for changes in LLVM trunk. Original patch by arrowdodger!
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@146178 91177308-0d34-0410-b5e6-96231b3b80d8
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, ""); |