about summary refs log tree commit diff homepage
path: root/lib/Module/ModuleUtil.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2014-09-14 16:19:49 -0700
committerDaniel Dunbar <daniel@zuster.org>2014-09-14 16:21:32 -0700
commit8ef9d62a07b23ce07c07f18347e6f486b33bb31e (patch)
treefda481637a49465636d8fa3f68e4b15fced61696 /lib/Module/ModuleUtil.cpp
parent87cd326ed978f09a1fdbce1ed89d535523f3ff21 (diff)
downloadklee-8ef9d62a07b23ce07c07f18347e6f486b33bb31e.tar.gz
[LLVM3.5] Update for more random headers moving around.
Diffstat (limited to 'lib/Module/ModuleUtil.cpp')
-rw-r--r--lib/Module/ModuleUtil.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Module/ModuleUtil.cpp b/lib/Module/ModuleUtil.cpp
index f6dfbbdf..3811003e 100644
--- a/lib/Module/ModuleUtil.cpp
+++ b/lib/Module/ModuleUtil.cpp
@@ -41,9 +41,14 @@
 #include "llvm/Module.h"
 #endif
 
+#if LLVM_VERSION_CODE < LLVM_VERSION(3, 5)
 #include "llvm/Linker.h"
 #include "llvm/Assembly/AssemblyAnnotationWriter.h"
-#include "llvm/Support/InstIterator.h"
+#else
+#include "llvm/Linker/Linker.h"
+#include "llvm/IR/AssemblyAnnotationWriter.h"
+#endif
+
 #include "llvm/Support/raw_ostream.h"
 #include "llvm/Analysis/ValueTracking.h"
 #include "llvm/Support/Path.h"