about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorLukáš Zaoral <lzaoral@redhat.com>2022-03-05 14:08:11 +0100
committerMartinNowack <2443641+MartinNowack@users.noreply.github.com>2023-03-20 14:35:16 +0000
commit425597940be8f35a05a34638764b3c8dc482dc25 (patch)
tree471632503ad614fff6ff38dd0fc74cbf78f4add4
parent9c73eb5081a12bf2de5e9a0cb0933cd30925ac6d (diff)
downloadklee-425597940be8f35a05a34638764b3c8dc482dc25.tar.gz
llvm14: TargetRegistry.h was moved from Support to MC
-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 98e580a8..457927f9 100644
--- a/lib/Module/RaiseAsm.cpp
+++ b/lib/Module/RaiseAsm.cpp
@@ -19,7 +19,11 @@
 #include "llvm/IR/Instructions.h"
 #include "llvm/IR/LLVMContext.h"
 #include "llvm/Support/Host.h"
+#if LLVM_VERSION_CODE >= LLVM_VERSION(14, 0)
+#include "llvm/MC/TargetRegistry.h"
+#else
 #include "llvm/Support/TargetRegistry.h"
+#endif
 #include "llvm/Target/TargetMachine.h"