aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-10-18 06:28:16 +0000
committerChris Lattner <sabre@nondot.org>2005-10-18 06:28:16 +0000
commitf9c6105a784f2f0ef683de007b25decb61ab5502 (patch)
tree6c3b3f000da69156cefd8d36dffc7d3a96fd2c14
parent40c62d50697a8515abdaf83655c031968d06a900 (diff)
add an option to the internalize pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23782 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Transforms/IPO.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/llvm/Transforms/IPO.h b/include/llvm/Transforms/IPO.h
index 62cdf3ec43..ca5959ce4b 100644
--- a/include/llvm/Transforms/IPO.h
+++ b/include/llvm/Transforms/IPO.h
@@ -111,10 +111,12 @@ ModulePass *createPruneEHPass();
//===----------------------------------------------------------------------===//
/// createInternalizePass - This pass loops over all of the functions in the
-/// input module, looking for a main function. If a main function is found, all
-/// other functions are marked as internal.
+/// input module, looking for a main function. If a list of symbols is
+/// specified with the -internalize-public-api-* command line options, those
+/// symbols are internalized. Otherwise if InternalizeEverything is set and
+/// the main function is found, all other globals are marked as internal.
///
-ModulePass *createInternalizePass();
+ModulePass *createInternalizePass(bool InternalizeEverything);
//===----------------------------------------------------------------------===//
/// createDeadArgEliminationPass - This pass removes arguments from functions