1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

Make the class VISIBILITY_HIDDEN.

Reduce lexical size of the anonymous namespace.

llvm-svn: 33925
This commit is contained in:
Reid Spencer 2007-02-05 21:45:12 +00:00
parent b9788ffe38
commit d6dc4cc8e9

View 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();
}