aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/IPO/StripDeadPrototypes.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-02-05 21:45:12 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-02-05 21:45:12 +0000
commit9153a6729f78a0c3bf89b3b571e8405165c93670 (patch)
tree44331b723ccb134a3b070ea55643a34cadaeb64d /lib/Transforms/IPO/StripDeadPrototypes.cpp
parentb6a24bfa9550e5561da3091f7e5132575bf5a19e (diff)
downloadexternal_llvm-9153a6729f78a0c3bf89b3b571e8405165c93670.zip
external_llvm-9153a6729f78a0c3bf89b3b571e8405165c93670.tar.gz
external_llvm-9153a6729f78a0c3bf89b3b571e8405165c93670.tar.bz2
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
Diffstat (limited to 'lib/Transforms/IPO/StripDeadPrototypes.cpp')
-rw-r--r--lib/Transforms/IPO/StripDeadPrototypes.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/IPO/StripDeadPrototypes.cpp b/lib/Transforms/IPO/StripDeadPrototypes.cpp
index cedaa1c..cc4a5ba 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<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();
}