mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-09 22:13:07 +00:00
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:
parent
63809dd809
commit
06bf569ba0
@ -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