Displaying 2 results from an estimated 2 matches for "addaddresssanitizerpass".
2011 Nov 22
2
[LLVMdev] Instrumentation passes and -O0 optimization level
...=============================---
tools/clang/lib/CodeGen/BackendUtil.cpp (revision 144800)+++
tools/clang/lib/CodeGen/BackendUtil.cpp (working copy)@@ -150,6
+150,8 @@ if (CodeGenOpts.AddressSanitizer) {
PMBuilder.addExtension(PassManagerBuilder::EP_ScalarOptimizerLate,
addAddressSanitizerPass);+
PMBuilder.addExtension(PassManagerBuilder::EP_EnabledOnOptLevel0,+
addAddressSanitizerPass); }
// Figure out TargetLibraryInfo.-------------------------8<--------------------------------------------------
TIA,Alexander Potapenko
Software Engineer
Google Moscow
2012 Oct 17
2
[LLVMdev] please advise on PassManager
...t the correct order of events for
some reason (foo gets inlined, then foo and bar are instrumented).
The code looks like this:
tools/clang/lib/CodeGen/BackendUtil.cpp
if (LangOpts.AddressSanitizer) {
PMBuilder.addExtension(PassManagerBuilder::EP_OptimizerLast,
addAddressSanitizerPass);
PMBuilder.addExtension(PassManagerBuilder::EP_EnabledOnOptLevel0,
addAddressSanitizerPass);
}
lib/Transforms/IPO/PassManagerBuilder.cpp
void PassManagerBuilder::populateModulePassManager(PassManagerBase &MPM) {
// If all optimizations are disabled,...