From b83344302ee86d4885f2481efe197b7ec087cdf6 Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Mon, 21 May 2018 15:14:41 +0200 Subject: llvm6: handle headers renaming Some headers were moved from llvm/Target/ to llvm/CodeGen/. Handle that. Signed-off-by: Jiri Slaby --- lib/Module/RaiseAsm.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; -- cgit 1.4.1