mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
make asan work at -O0, llvm part. Patch by glider@google.com
llvm-svn: 145530
This commit is contained in:
parent
2dfb343ffa
commit
aa616ec887
@ -67,7 +67,12 @@ public:
|
||||
/// EP_ScalarOptimizerLate - This extension point allows adding optimization
|
||||
/// passes after most of the main optimizations, but before the last
|
||||
/// 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.
|
||||
|
@ -101,6 +101,7 @@ void PassManagerBuilder::populateModulePassManager(PassManagerBase &MPM) {
|
||||
MPM.add(Inliner);
|
||||
Inliner = 0;
|
||||
}
|
||||
addExtensionsToPM(EP_EnabledOnOptLevel0, MPM);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -340,4 +341,3 @@ void LLVMPassManagerBuilderPopulateLTOPassManager(LLVMPassManagerBuilderRef PMB,
|
||||
PassManagerBase *LPM = unwrap(PM);
|
||||
Builder->populateLTOPassManager(*LPM, Internalize, RunInliner);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user