From 0cea3ec964a3ca8f9002ee97a57f06e3e972fdf1 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 10 Oct 2003 18:18:53 +0000 Subject: Add a new -disable-inlining option git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9028 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/gccas/gccas.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tools') 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 Verify("verify", cl::desc("Verify each pass result")); + + cl::opt + 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 -- cgit v1.2.3