Add argument to DAE to allow operation on non-internal functions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6895 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2003-06-25 04:12:49 +00:00
parent e99f4cf4ac
commit 9b2a14b6f1
2 changed files with 26 additions and 11 deletions

View File

@ -70,9 +70,12 @@ Pass *createInternalizePass();
//===----------------------------------------------------------------------===//
// createDeadArgEliminationPass - This pass removes arguments from functions
// which are not used by the body of the function.
// which are not used by the body of the function. If
// DeleteFromExternalFunctions is true, the pass will modify functions that have
// external linkage, which is not usually safe (this is used by bugpoint to
// reduce testcases).
//
Pass *createDeadArgEliminationPass();
Pass *createDeadArgEliminationPass(bool DeleteFromExternalFunctions=false);
//===----------------------------------------------------------------------===//