aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms/IPO
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2011-11-30 22:19:26 +0000
committerKostya Serebryany <kcc@google.com>2011-11-30 22:19:26 +0000
commitaf65a8c54b66e9a78e2c7a9a810a33a73fb7f63a (patch)
treee1c67cfc55b5c9f8e043407278f48ace00e44c1b /include/llvm/Transforms/IPO
parentdd649e35e522f5e0b5da3f9d172e06a375c12f77 (diff)
downloadexternal_llvm-af65a8c54b66e9a78e2c7a9a810a33a73fb7f63a.zip
external_llvm-af65a8c54b66e9a78e2c7a9a810a33a73fb7f63a.tar.gz
external_llvm-af65a8c54b66e9a78e2c7a9a810a33a73fb7f63a.tar.bz2
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
Diffstat (limited to 'include/llvm/Transforms/IPO')
-rw-r--r--include/llvm/Transforms/IPO/PassManagerBuilder.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/llvm/Transforms/IPO/PassManagerBuilder.h b/include/llvm/Transforms/IPO/PassManagerBuilder.h
index cc74e7f..d265bda 100644
--- a/include/llvm/Transforms/IPO/PassManagerBuilder.h
+++ b/include/llvm/Transforms/IPO/PassManagerBuilder.h
@@ -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.