diff options
-rw-r--r-- | lib/Module/KModule.cpp | 4 | ||||
-rw-r--r-- | lib/Module/Optimize.cpp | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/Module/KModule.cpp b/lib/Module/KModule.cpp index 1fc0cb18..8014e135 100644 --- a/lib/Module/KModule.cpp +++ b/lib/Module/KModule.cpp @@ -51,6 +51,10 @@ #include "llvm/Transforms/Utils/Cloning.h" +#if LLVM_VERSION_CODE >= LLVM_VERSION(7, 0) +#include "llvm/Transforms/Utils.h" +#endif + #include <sstream> using namespace llvm; diff --git a/lib/Module/Optimize.cpp b/lib/Module/Optimize.cpp index 34af4626..627921cb 100644 --- a/lib/Module/Optimize.cpp +++ b/lib/Module/Optimize.cpp @@ -44,6 +44,11 @@ #include "llvm/Transforms/Scalar/GVN.h" #endif +#if LLVM_VERSION_CODE >= LLVM_VERSION(7, 0) +#include "llvm/Transforms/Utils.h" +#include "llvm/Transforms/InstCombine/InstCombine.h" +#endif + using namespace llvm; // Don't verify at the end |