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 | 0cea3ec964a3ca8f9002ee97a57f06e3e972fdf1 (patch) | |
tree | a73e9f5da46c6ac9660c246202b32c7d3cbb8d06 /tools | |
parent | cf00c4ab3ba308d45d98c5ccab87362cf802facb (diff) | |
download | external_llvm-0cea3ec964a3ca8f9002ee97a57f06e3e972fdf1.zip external_llvm-0cea3ec964a3ca8f9002ee97a57f06e3e972fdf1.tar.gz external_llvm-0cea3ec964a3ca8f9002ee97a57f06e3e972fdf1.tar.bz2 |
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.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp index 0a50d9f..2cd408a 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 |