diff options
-rw-r--r-- | lib/Module/RaiseAsm.cpp | 4 |
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" |