diff options
author | Matthijs Kooijman <matthijs@stdin.nl> | 2008-06-26 09:48:11 +0000 |
---|---|---|
committer | Matthijs Kooijman <matthijs@stdin.nl> | 2008-06-26 09:48:11 +0000 |
commit | b0ed11f4a0677f934c21c5a7180585bb1ab742a5 (patch) | |
tree | e30e9af6f7e1deb81a28c3536372812cbcf53a3c /include/llvm/Transforms/IPO.h | |
parent | fc1fd54a346fe07101228d77aa20682b2b61b2ff (diff) | |
download | llvm-b0ed11f4a0677f934c21c5a7180585bb1ab742a5.tar.gz llvm-b0ed11f4a0677f934c21c5a7180585bb1ab742a5.tar.bz2 llvm-b0ed11f4a0677f934c21c5a7180585bb1ab742a5.tar.xz |
Improve comments wrt createInternalize.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52779 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/IPO.h')
-rw-r--r-- | include/llvm/Transforms/IPO.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/llvm/Transforms/IPO.h b/include/llvm/Transforms/IPO.h index 57377f9855..e2ae9ba3f0 100644 --- a/include/llvm/Transforms/IPO.h +++ b/include/llvm/Transforms/IPO.h @@ -106,14 +106,19 @@ Pass *createPruneEHPass(); /// 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 |