From 06c818e71786ee206e53ca87d63e09747119f5f5 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 25 Jun 2003 04:13:36 +0000 Subject: [PATCH] Run dead arg elimination, and tell it that it's ok to hack up non-internal functions git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6896 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/bugpoint/ExtractFunction.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/bugpoint/ExtractFunction.cpp b/tools/bugpoint/ExtractFunction.cpp index 725ba599bd9..1aefcefad4b 100644 --- a/tools/bugpoint/ExtractFunction.cpp +++ b/tools/bugpoint/ExtractFunction.cpp @@ -97,6 +97,7 @@ Module *BugDriver::performFinalCleanups() const { CleanupPasses.add(createFunctionResolvingPass()); CleanupPasses.add(createGlobalDCEPass()); CleanupPasses.add(createDeadTypeEliminationPass()); + CleanupPasses.add(createDeadArgEliminationPass(true)); CleanupPasses.add(createVerifierPass()); CleanupPasses.run(*M); return M;