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:
parent
8313d845fa
commit
23a4ff1cd4
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user