File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change 43
43
#include " llvm/IR/PassManager.h"
44
44
#else
45
45
#include " llvm/IR/LegacyPassManager.h"
46
- #endif
47
-
48
- #if LLVM_VERSION_MAJOR < 11
49
46
#include " llvm/Transforms/IPO/PassManagerBuilder.h"
50
47
#endif
51
48
#include " llvm/IR/BasicBlock.h"
@@ -683,7 +680,6 @@ bool AutoTokensPass::runOnModule(Module &M) {
683
680
#if USE_NEW_PM
684
681
685
682
#else
686
- #if LLVM_VERSION_MAJOR < 11
687
683
static void registerAutoTokensPass (const PassManagerBuilder &,
688
684
legacy::PassManagerBase &PM) {
689
685
PM.add (new AutoTokensPass ());
Original file line number Diff line number Diff line change 33
33
#include " llvm/IR/PassManager.h"
34
34
#else
35
35
#include " llvm/IR/LegacyPassManager.h"
36
+ #include " llvm/Transforms/IPO/PassManagerBuilder.h"
36
37
#endif
37
38
38
39
#include " llvm/ADT/Statistic.h"
39
40
#include " llvm/IR/IRBuilder.h"
40
41
#include " llvm/IR/Module.h"
41
42
#include " llvm/Support/Debug.h"
42
43
#include " llvm/Support/raw_ostream.h"
43
- #if LLVM_VERSION_MAJOR < 11
44
- #include " llvm/Transforms/IPO/PassManagerBuilder.h"
45
- #endif
46
44
#include " llvm/Transforms/Utils/BasicBlockUtils.h"
47
45
#include " llvm/Pass.h"
48
46
#include " llvm/Analysis/ValueTracking.h"
@@ -466,7 +464,6 @@ bool CmpLogRoutines::runOnModule(Module &M) {
466
464
467
465
#if USE_NEW_PM
468
466
#else
469
- #if LLVM_VERSION_MAJOR < 11 /* use old pass manager */
470
467
static void registerCmpLogRoutinesPass (const PassManagerBuilder &,
471
468
legacy::PassManagerBase &PM) {
472
469
auto p = new CmpLogRoutines ();
You can’t perform that action at this time.
0 commit comments