mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-14 04:57:33 +00:00
make asan work at -O0, llvm part. Patch by glider@google.com
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145530 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dd649e35e5
commit
af65a8c54b
@ -67,7 +67,12 @@ public:
|
|||||||
/// EP_ScalarOptimizerLate - This extension point allows adding optimization
|
/// EP_ScalarOptimizerLate - This extension point allows adding optimization
|
||||||
/// passes after most of the main optimizations, but before the last
|
/// passes after most of the main optimizations, but before the last
|
||||||
/// cleanup-ish optimizations.
|
/// cleanup-ish optimizations.
|
||||||
EP_ScalarOptimizerLate
|
EP_ScalarOptimizerLate,
|
||||||
|
|
||||||
|
/// EP_EnabledOnOptLevel0 - This extension point allows adding passes that
|
||||||
|
/// should not be disabled by O0 optimization level. The passes will be
|
||||||
|
/// inserted after the inlining pass.
|
||||||
|
EP_EnabledOnOptLevel0
|
||||||
};
|
};
|
||||||
|
|
||||||
/// The Optimization Level - Specify the basic optimization level.
|
/// The Optimization Level - Specify the basic optimization level.
|
||||||
|
@ -101,6 +101,7 @@ void PassManagerBuilder::populateModulePassManager(PassManagerBase &MPM) {
|
|||||||
MPM.add(Inliner);
|
MPM.add(Inliner);
|
||||||
Inliner = 0;
|
Inliner = 0;
|
||||||
}
|
}
|
||||||
|
addExtensionsToPM(EP_EnabledOnOptLevel0, MPM);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -340,4 +341,3 @@ void LLVMPassManagerBuilderPopulateLTOPassManager(LLVMPassManagerBuilderRef PMB,
|
|||||||
PassManagerBase *LPM = unwrap(PM);
|
PassManagerBase *LPM = unwrap(PM);
|
||||||
Builder->populateLTOPassManager(*LPM, Internalize, RunInliner);
|
Builder->populateLTOPassManager(*LPM, Internalize, RunInliner);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user