diff options
author | Chris Lattner <sabre@nondot.org> | 2003-10-10 18:18:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-10-10 18:18:53 +0000 |
commit | e01ba00b872bd5080d87e3b3372389d0ddf2ea50 (patch) | |
tree | 9a69be0b89fc33f76508e563786be2797dc1a321 /llvm/tools/gccas | |
parent | 8b2bd4ed47e819e042a49d21abbd8f6bcd143f79 (diff) | |
download | bcm5719-llvm-e01ba00b872bd5080d87e3b3372389d0ddf2ea50.tar.gz bcm5719-llvm-e01ba00b872bd5080d87e3b3372389d0ddf2ea50.zip |
Add a new -disable-inlining option
llvm-svn: 9028
Diffstat (limited to 'llvm/tools/gccas')
-rw-r--r-- | llvm/tools/gccas/gccas.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/tools/gccas/gccas.cpp b/llvm/tools/gccas/gccas.cpp index 0a50d9fbb54..2cd408ab932 100644 --- a/llvm/tools/gccas/gccas.cpp +++ b/llvm/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 |