about summary refs log tree commit diff homepage
path: root/lib/Module
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-11-29 02:13:21 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-11-29 02:13:21 +0000
commit9644f84280ea5f5d6c94161860e7f1780e27f8bd (patch)
tree7a20d1267267176ce74f8f0f4a9b79d062ce4fc3 /lib/Module
parent3c844fae79cbc71e365851e7978ee4767880f66b (diff)
downloadklee-9644f84280ea5f5d6c94161860e7f1780e27f8bd.tar.gz
Updates for LLVM 3.1.
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@145365 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Module')
-rw-r--r--lib/Module/RaiseAsm.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Module/RaiseAsm.cpp b/lib/Module/RaiseAsm.cpp
index 60bf28a1..1f7f756f 100644
--- a/lib/Module/RaiseAsm.cpp
+++ b/lib/Module/RaiseAsm.cpp
@@ -90,7 +90,11 @@ bool RaiseAsmPass::runOnModule(Module &M) {
 
 #if LLVM_VERSION_CODE >= LLVM_VERSION(2, 9)
   std::string Err;
+#if LLVM_VERSION_CODE >= LLVM_VERSION(3, 1)
+  std::string HostTriple = llvm::sys::getDefaultTargetTriple();
+#else
   std::string HostTriple = llvm::sys::getHostTriple();
+#endif
   const Target *NativeTarget = TargetRegistry::lookupTarget(HostTriple, Err);
   if (NativeTarget == 0) {
     llvm::errs() << "Warning: unable to select native target: " << Err << "\n";