diff options
author | van Hauser <vh@thc.org> | 2022-03-17 16:30:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-17 16:30:29 +0100 |
commit | 1bea949f34fb437a60ca772787a9018a3ba79053 (patch) | |
tree | 59d6f7ef2222cb92835d08398de3a1d32d2f8528 /instrumentation/cmplog-instructions-pass.cc | |
parent | 3c11a377570512efeb3a197148ff1b7dddbd8e32 (diff) | |
parent | 1a65df2beee0a68bd5198a44f42ae1346f7ee231 (diff) | |
download | afl++-1bea949f34fb437a60ca772787a9018a3ba79053.tar.gz |
Merge branch 'dev' into newpm2
Diffstat (limited to 'instrumentation/cmplog-instructions-pass.cc')
-rw-r--r-- | instrumentation/cmplog-instructions-pass.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/instrumentation/cmplog-instructions-pass.cc b/instrumentation/cmplog-instructions-pass.cc index 5bd98072..85dec437 100644 --- a/instrumentation/cmplog-instructions-pass.cc +++ b/instrumentation/cmplog-instructions-pass.cc @@ -28,6 +28,7 @@ #include "llvm/Config/llvm-config.h" #include "llvm/ADT/Statistic.h" #include "llvm/IR/IRBuilder.h" +#include "llvm/IR/LegacyPassManager.h" #include "llvm/IR/Module.h" #include "llvm/Support/Debug.h" #include "llvm/Support/raw_ostream.h" @@ -37,6 +38,7 @@ #include "llvm/IR/PassManager.h" #else #include "llvm/IR/LegacyPassManager.h" + #include "llvm/Transforms/IPO/PassManagerBuilder.h" #endif #include "llvm/Transforms/Utils/BasicBlockUtils.h" #include "llvm/Pass.h" @@ -136,7 +138,7 @@ llvmGetPassPluginInfo() { #else char CmpLogInstructions::ID = 0; #endif - + template <class Iterator> Iterator Unique(Iterator first, Iterator last) { @@ -684,10 +686,10 @@ bool CmpLogInstructions::runOnModule(Module &M) { #else return true; #endif - + } -#if LLVM_MAJOR < 11 /* use old pass manager */ +#if LLVM_MAJOR < 11 /* use old pass manager */ static void registerCmpLogInstructionsPass(const PassManagerBuilder &, legacy::PassManagerBase &PM) { @@ -708,4 +710,3 @@ static RegisterStandardPasses RegisterCmpLogInstructionsPassLTO( registerCmpLogInstructionsPass); #endif #endif - |