[llvm-commits] CVS: llvm/lib/Transforms/IPO/StripDeadPrototypes.cpp

Reid Spencer reid at x10sys.com
Mon Feb 5 13:45:28 PST 2007



Changes in directory llvm/lib/Transforms/IPO:

StripDeadPrototypes.cpp updated: 1.1 -> 1.2
---
Log message:

Make the class VISIBILITY_HIDDEN.
Reduce lexical size of the anonymous namespace.


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

 StripDeadPrototypes.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/lib/Transforms/IPO/StripDeadPrototypes.cpp
diff -u llvm/lib/Transforms/IPO/StripDeadPrototypes.cpp:1.1 llvm/lib/Transforms/IPO/StripDeadPrototypes.cpp:1.2
--- llvm/lib/Transforms/IPO/StripDeadPrototypes.cpp:1.1	Mon Feb  5 14:24:25 2007
+++ llvm/lib/Transforms/IPO/StripDeadPrototypes.cpp	Mon Feb  5 15:45:12 2007
@@ -25,7 +25,7 @@
 namespace {
 
 /// @brief Pass to remove unused function declarations.
-class StripDeadPrototypesPass : public ModulePass {
+class VISIBILITY_HIDDEN StripDeadPrototypesPass : public ModulePass {
 public:
   StripDeadPrototypesPass() { }
   virtual bool runOnModule(Module &M);
@@ -33,6 +33,8 @@
 RegisterPass<StripDeadPrototypesPass> X("strip-dead-prototypes", 
                                         "Strip Unused Function Prototypes");
 
+} // end anonymous namespace
+
 bool StripDeadPrototypesPass::runOnModule(Module &M) {
   // Collect all the functions we want to erase
   std::vector<Function*> FuncsToErase;
@@ -54,8 +56,6 @@
   return !FuncsToErase.empty();
 }
 
-} // end anonymous namespace
-
 ModulePass *llvm::createStripDeadPrototypesPass() {
   return new StripDeadPrototypesPass();
 }






More information about the llvm-commits mailing list