summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-10 18:18:53 +0000
committerChris Lattner <sabre@nondot.org>2003-10-10 18:18:53 +0000
commit0cea3ec964a3ca8f9002ee97a57f06e3e972fdf1 (patch)
treea73e9f5da46c6ac9660c246202b32c7d3cbb8d06 /tools
parentcf00c4ab3ba308d45d98c5ccab87362cf802facb (diff)
downloadllvm-0cea3ec964a3ca8f9002ee97a57f06e3e972fdf1.tar.gz
llvm-0cea3ec964a3ca8f9002ee97a57f06e3e972fdf1.tar.bz2
llvm-0cea3ec964a3ca8f9002ee97a57f06e3e972fdf1.tar.xz
Add a new -disable-inlining option
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9028 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/gccas/gccas.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index 0a50d9fbb5..2cd408ab93 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -31,6 +31,9 @@ namespace {
cl::opt<bool>
Verify("verify", cl::desc("Verify each pass result"));
+
+ cl::opt<bool>
+ DisableInline("disable-inlining", cl::desc("Do not run the inliner pass"));
}
@@ -50,7 +53,9 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
addPass(PM, createRaiseAllocationsPass()); // call %malloc -> malloc inst
addPass(PM, createGlobalDCEPass()); // Remove unused globals
addPass(PM, createPruneEHPass()); // Remove dead EH info
- addPass(PM, createFunctionInliningPass()); // Inline small functions
+
+ if (!DisableInline)
+ addPass(PM, createFunctionInliningPass()); // Inline small functions
addPass(PM, createInstructionCombiningPass()); // Cleanup code for raise
addPass(PM, createRaisePointerReferencesPass());// Recover type information