klee/0002-llvm14-TargetRegistry.h-was-moved-from-Support-to-MC.patch

33 lines
892 B
Diff
Raw Normal View History

From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Zaoral?= <lzaoral@redhat.com>
Date: Sat, 5 Mar 2022 14:08:11 +0100
Subject: llvm14: TargetRegistry.h was moved from Support to MC
Git-repo: https://github.com/lzaoral/klee#llvm14
Git-commit: fcbec7650d30a39bed145041c6b5e9d996185524
Patch-mainline: no
References: llvm 14
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
---
lib/Module/RaiseAsm.cpp | 4 ++++
1 file changed, 4 insertions(+)
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"
--
2.35.3