mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-01 16:22:41 +00:00
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
This commit is contained in:
parent
b6a24bfa95
commit
9153a6729f
@ -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…
x
Reference in New Issue
Block a user