diff options
Diffstat (limited to 'lib/Module/Optimize.cpp')
-rw-r--r-- | lib/Module/Optimize.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Module/Optimize.cpp b/lib/Module/Optimize.cpp index c0f3f34c..21c77c04 100644 --- a/lib/Module/Optimize.cpp +++ b/lib/Module/Optimize.cpp @@ -16,7 +16,7 @@ //===----------------------------------------------------------------------===// #include "klee/Config/Version.h" -#include "llvm/PassManager.h" +#include "klee/Internal/Module/LLVMPassManager.h" #include "llvm/Analysis/Passes.h" #include "llvm/Analysis/LoopPass.h" #include "llvm/Support/CommandLine.h" @@ -80,7 +80,7 @@ static cl::alias A1("S", cl::desc("Alias for --strip-debug"), // A utility function that adds a pass to the pass manager but will also add // a verifier pass after if we're supposed to verify. -static inline void addPass(PassManager &PM, Pass *P) { +static inline void addPass(klee::LegacyLLVMPassManagerTy &PM, Pass *P) { // Add the pass to the pass manager... PM.add(P); @@ -92,7 +92,7 @@ static inline void addPass(PassManager &PM, Pass *P) { namespace llvm { -static void AddStandardCompilePasses(PassManager &PM) { +static void AddStandardCompilePasses(klee::LegacyLLVMPassManagerTy &PM) { PM.add(createVerifierPass()); // Verify that input is correct #if LLVM_VERSION_CODE < LLVM_VERSION(3, 0) @@ -166,7 +166,7 @@ static void AddStandardCompilePasses(PassManager &PM) { void Optimize(Module *M, const std::string &EntryPoint) { // Instantiate the pass manager to organize the passes. - PassManager Passes; + klee::LegacyLLVMPassManagerTy Passes; // If we're verifying, start off with a verification pass. if (VerifyEach) |