forked from OSchip/llvm-project
Make the class VISIBILITY_HIDDEN.
Reduce lexical size of the anonymous namespace. llvm-svn: 33925
This commit is contained in:
parent
a9428c4f9d
commit
35a0718d82
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue