diff options
author | Chris Lattner <sabre@nondot.org> | 2003-06-25 04:12:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-06-25 04:12:49 +0000 |
commit | 9b2a14b6f1a7e1dc93f47778adb2d68f327f5ab9 (patch) | |
tree | d014c889181c4633bd735d74ef2c434600921774 /include | |
parent | e99f4cf4ac380cfeb235fbae6d418c165a76f556 (diff) | |
download | llvm-9b2a14b6f1a7e1dc93f47778adb2d68f327f5ab9.tar.gz llvm-9b2a14b6f1a7e1dc93f47778adb2d68f327f5ab9.tar.bz2 llvm-9b2a14b6f1a7e1dc93f47778adb2d68f327f5ab9.tar.xz |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Transforms/IPO.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/Transforms/IPO.h b/include/llvm/Transforms/IPO.h index 610174176a..e86dd3d71b 100644 --- a/include/llvm/Transforms/IPO.h +++ b/include/llvm/Transforms/IPO.h @@ -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); //===----------------------------------------------------------------------===// |