[llvm-commits] [llvm] r52779 - /llvm/trunk/include/llvm/Transforms/IPO.h
Matthijs Kooijman
matthijs at stdin.nl
Thu Jun 26 02:48:11 PDT 2008
Author: matthijs
Date: Thu Jun 26 04:48:11 2008
New Revision: 52779
URL: http://llvm.org/viewvc/llvm-project?rev=52779&view=rev
Log:
Improve comments wrt createInternalize.
Modified:
llvm/trunk/include/llvm/Transforms/IPO.h
Modified: llvm/trunk/include/llvm/Transforms/IPO.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/IPO.h?rev=52779&r1=52778&r2=52779&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/IPO.h (original)
+++ llvm/trunk/include/llvm/Transforms/IPO.h Thu Jun 26 04:48:11 2008
@@ -106,14 +106,19 @@
/// of the api. If a list of symbols is specified with the
/// -internalize-public-api-* command line options, those symbols are not
/// internalized and all others are. Otherwise if AllButMain is set and the
-/// main function is found, all other globals are marked as internal.
+/// main function is found, all other globals are marked as internal. If no api
+/// is supplied and AllButMain is not set, or no main function is found, nothing
+/// is internalized.
///
ModulePass *createInternalizePass(bool AllButMain);
/// createInternalizePass - This pass loops over all of the functions in the
/// input module, internalizing all globals (functions and variables) not in the
/// given exportList.
-ModulePass *createInternalizePass(const std::vector<const char *> &exportList);
+///
+/// Note that commandline options that are used with the above function are not
+/// used now! Also, when exportList is empty, nothing is internalized.
+ModulePass *createInternalizePass(const std::vector<const char *> &exportList)
//===----------------------------------------------------------------------===//
/// createDeadArgEliminationPass - This pass removes arguments from functions
More information about the llvm-commits
mailing list