[llvm-commits] CVS: llvm/include/llvm/Transforms/IPO.h

Chris Lattner lattner at cs.uiuc.edu
Mon Oct 17 23:28:27 PDT 2005



Changes in directory llvm/include/llvm/Transforms:

IPO.h updated: 1.43 -> 1.44
---
Log message:

add an option to the internalize pass


---
Diffs of the changes:  (+5 -3)

 IPO.h |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)


Index: llvm/include/llvm/Transforms/IPO.h
diff -u llvm/include/llvm/Transforms/IPO.h:1.43 llvm/include/llvm/Transforms/IPO.h:1.44
--- llvm/include/llvm/Transforms/IPO.h:1.43	Sun Apr 24 21:54:00 2005
+++ llvm/include/llvm/Transforms/IPO.h	Tue Oct 18 01:28:16 2005
@@ -111,10 +111,12 @@
 
 //===----------------------------------------------------------------------===//
 /// 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






More information about the llvm-commits mailing list