about summary refs log tree commit diff homepage
path: root/lib
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-09-02 19:25:37 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-09-02 19:25:37 +0000
commit90d8a6fb1a71c030f87fff5685b5d6f39ed4ac09 (patch)
tree65f85bd04966f4e40fa95465d16cd60741141d48 /lib
parent12ab0111a54e0c6ce9fe78925efb6bf13d2b77b3 (diff)
downloadklee-90d8a6fb1a71c030f87fff5685b5d6f39ed4ac09.tar.gz
Update location of TargetSelect.h and TargetRegistry.h for LLVM 3.0+
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@139026 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Core/ExternalDispatcher.cpp4
-rw-r--r--lib/Module/RaiseAsm.cpp4
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/Core/ExternalDispatcher.cpp b/lib/Core/ExternalDispatcher.cpp
index c876685e..7da0c350 100644
--- a/lib/Core/ExternalDispatcher.cpp
+++ b/lib/Core/ExternalDispatcher.cpp
@@ -36,7 +36,11 @@
 #include "llvm/Support/DynamicLibrary.h"
 #endif
 #include "llvm/Support/raw_ostream.h"
+#if LLVM_VERSION_CODE < LLVM_VERSION(3, 0)
 #include "llvm/Target/TargetSelect.h"
+#else
+#include "llvm/Support/TargetSelect.h"
+#endif
 #include <setjmp.h>
 #include <signal.h>
 #include <iostream>
diff --git a/lib/Module/RaiseAsm.cpp b/lib/Module/RaiseAsm.cpp
index 6f6a5c90..60bf28a1 100644
--- a/lib/Module/RaiseAsm.cpp
+++ b/lib/Module/RaiseAsm.cpp
@@ -18,7 +18,11 @@
 #include "llvm/Support/raw_ostream.h"
 #include "llvm/Support/Host.h"
 #include "llvm/Target/TargetLowering.h"
+#if LLVM_VERSION_CODE < LLVM_VERSION(3, 0)
 #include "llvm/Target/TargetRegistry.h"
+#else
+#include "llvm/Support/TargetRegistry.h"
+#endif
 #endif
 
 using namespace llvm;