[llvm-commits] [llvm] r52672 - in /llvm/trunk: include/llvm/Transforms/IPO.h lib/Transforms/IPO/Internalize.cpp
Matthijs Kooijman
matthijs at stdin.nl
Tue Jun 24 02:14:10 PDT 2008
Author: matthijs
Date: Tue Jun 24 04:14:10 2008
New Revision: 52672
URL: http://llvm.org/viewvc/llvm-project?rev=52672&view=rev
Log:
Rename a few variables to be more consistent.
Modified:
llvm/trunk/include/llvm/Transforms/IPO.h
llvm/trunk/lib/Transforms/IPO/Internalize.cpp
Modified: llvm/trunk/include/llvm/Transforms/IPO.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/IPO.h?rev=52672&r1=52671&r2=52672&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/IPO.h (original)
+++ llvm/trunk/include/llvm/Transforms/IPO.h Tue Jun 24 04:14:10 2008
@@ -108,7 +108,7 @@
/// internalized and all others are. Otherwise if AllButMain is set and the
/// main function is found, all other globals are marked as internal.
///
-ModulePass *createInternalizePass(bool InternalizeEverything);
+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
Modified: llvm/trunk/lib/Transforms/IPO/Internalize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/Internalize.cpp?rev=52672&r1=52671&r2=52672&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/Internalize.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/Internalize.cpp Tue Jun 24 04:14:10 2008
@@ -48,7 +48,7 @@
bool AllButMain;
public:
static char ID; // Pass identification, replacement for typeid
- explicit InternalizePass(bool InternalizeEverything = true);
+ explicit InternalizePass(bool AllButMain = true);
explicit InternalizePass(const std::vector <const char *>& exportList);
void LoadFile(const char *Filename);
virtual bool runOnModule(Module &M);
@@ -150,8 +150,8 @@
return Changed;
}
-ModulePass *llvm::createInternalizePass(bool InternalizeEverything) {
- return new InternalizePass(InternalizeEverything);
+ModulePass *llvm::createInternalizePass(bool AllButMain) {
+ return new InternalizePass(AllButMain);
}
ModulePass *llvm::createInternalizePass(const std::vector <const char *> &el) {
More information about the llvm-commits
mailing list