Make the class VISIBILITY_HIDDEN.
authorReid Spencer <rspencer@reidspencer.com>
Mon, 5 Feb 2007 21:45:12 +0000 (21:45 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 5 Feb 2007 21:45:12 +0000 (21:45 +0000)
Reduce lexical size of the anonymous namespace.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33925 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/StripDeadPrototypes.cpp

index cedaa1c354d6459bb654544c193cb9f0ba108af5..cc4a5ba08dd86f036dda6e69e2ed79a18fe5c6c8 100644 (file)
@@ -25,7 +25,7 @@ STATISTIC(NumDeadPrototypes, "Number of dead prototypes removed");
 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 @@ public:
 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 @@ bool StripDeadPrototypesPass::runOnModule(Module &M) {
   return !FuncsToErase.empty();
 }
 
-} // end anonymous namespace
-
 ModulePass *llvm::createStripDeadPrototypesPass() {
   return new StripDeadPrototypesPass();
 }