From f09e38ccac433e61abb0b77fa4231f37620ea35a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 18 Oct 2005 06:28:16 +0000 Subject: add an option to the internalize pass llvm-svn: 23782 --- llvm/include/llvm/Transforms/IPO.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/llvm/include/llvm/Transforms/IPO.h b/llvm/include/llvm/Transforms/IPO.h index 62cdf3ec436..ca5959ce4be 100644 --- a/llvm/include/llvm/Transforms/IPO.h +++ b/llvm/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 -- cgit v1.2.3