1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

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

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 266173
This commit is contained in:
Mehdi Amini 2016-04-13 06:32:29 +00:00
parent 8313d845fa
commit 23a4ff1cd4
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(