about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2018-05-21 15:14:41 +0200
committerMartinNowack <martin.nowack@gmail.com>2018-10-26 15:54:24 +0100
commitb83344302ee86d4885f2481efe197b7ec087cdf6 (patch)
treeae37182623fb3d88519e18576befa83d23203f8e
parentc6cfd6d722089b1560fefbd5f97177c8117aadbd (diff)
downloadklee-b83344302ee86d4885f2481efe197b7ec087cdf6.tar.gz
llvm6: handle headers renaming
Some headers were moved from llvm/Target/ to llvm/CodeGen/. Handle that.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
-rw-r--r--lib/Module/RaiseAsm.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Module/RaiseAsm.cpp b/lib/Module/RaiseAsm.cpp
index 4967a2fa..eef22fb8 100644
--- a/lib/Module/RaiseAsm.cpp
+++ b/lib/Module/RaiseAsm.cpp
@@ -18,10 +18,16 @@
 #include "llvm/Support/raw_ostream.h"
 #include "llvm/Support/Host.h"
 #include "llvm/Support/TargetRegistry.h"
+#if LLVM_VERSION_CODE >= LLVM_VERSION(6, 0)
+#include "llvm/CodeGen/TargetLowering.h"
+#include "llvm/CodeGen/TargetSubtargetInfo.h"
+#include "llvm/Target/TargetMachine.h"
+#elif LLVM_VERSION_CODE >= LLVM_VERSION(3, 6)
 #include "llvm/Target/TargetLowering.h"
-#if LLVM_VERSION_CODE >= LLVM_VERSION(3, 6)
 #include "llvm/Target/TargetMachine.h"
 #include "llvm/Target/TargetSubtargetInfo.h"
+#else
+#include "llvm/Target/TargetLowering.h"
 #endif
 
 using namespace llvm;