From 2e08a4bf1c792d8743c3f61ea7aaaf2cd513829c Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Thu, 8 Dec 2011 20:44:45 +0000 Subject: 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 --- lib/Module/RaiseAsm.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/Module') 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, ""); -- cgit 1.4.1