Minor cleanup in Internalize, hide helper class using anonymous namespace (NFC)

From: Mehdi Amini <mehdi.amini@apple.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266173 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Mehdi Amini 2016-04-13 06:32:29 +00:00
parent 63809dd809
commit 06bf569ba0
3 changed files with 6 additions and 5 deletions

View File

@ -117,11 +117,6 @@ public:
AU.addPreserved<CallGraphWrapperPass>();
}
};
} // end anonymous namespace
char InternalizePass::ID = 0;
INITIALIZE_PASS(InternalizePass, "internalize", "Internalize Global Symbols",
false, false)
// Helper class to perform internalization.
class Internalizer {
@ -299,6 +294,12 @@ bool Internalizer::internalizeModule(Module &M, CallGraph *CG) {
return Changed;
}
} // end anonymous namespace
char InternalizePass::ID = 0;
INITIALIZE_PASS(InternalizePass, "internalize", "Internalize Global Symbols",
false, false)
/// Public API below
bool llvm::internalizeModule(