From: Reid Spencer Date: Mon, 5 Feb 2007 21:45:12 +0000 (+0000) Subject: Make the class VISIBILITY_HIDDEN. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9153a6729f78a0c3bf89b3b571e8405165c93670;p=oota-llvm.git Make the class VISIBILITY_HIDDEN. Reduce lexical size of the anonymous namespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33925 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/IPO/StripDeadPrototypes.cpp b/lib/Transforms/IPO/StripDeadPrototypes.cpp index cedaa1c354d..cc4a5ba08dd 100644 --- a/lib/Transforms/IPO/StripDeadPrototypes.cpp +++ b/lib/Transforms/IPO/StripDeadPrototypes.cpp @@ -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 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 FuncsToErase; @@ -54,8 +56,6 @@ bool StripDeadPrototypesPass::runOnModule(Module &M) { return !FuncsToErase.empty(); } -} // end anonymous namespace - ModulePass *llvm::createStripDeadPrototypesPass() { return new StripDeadPrototypesPass(); }