mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 05:32:25 +00:00
Use static and anonymous namespaces consistently with other passes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51156 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0c87f2d824
commit
d208a803a6
@ -25,7 +25,7 @@ namespace {
|
||||
|
||||
LibCallInfo *LCI;
|
||||
|
||||
LibCallAliasAnalysis(LibCallInfo *LC = 0)
|
||||
explicit LibCallAliasAnalysis(LibCallInfo *LC = 0)
|
||||
: FunctionPass((intptr_t)&ID), LCI(LC) {
|
||||
}
|
||||
~LibCallAliasAnalysis() {
|
||||
@ -56,15 +56,15 @@ namespace {
|
||||
ModRefResult AnalyzeLibCallDetails(const LibCallFunctionInfo *FI,
|
||||
CallSite CS, Value *P, unsigned Size);
|
||||
};
|
||||
|
||||
// Register this pass...
|
||||
char LibCallAliasAnalysis::ID = 0;
|
||||
RegisterPass<LibCallAliasAnalysis>
|
||||
X("libcall-aa", "LibCall Alias Analysis", false, true);
|
||||
|
||||
// Declare that we implement the AliasAnalysis interface
|
||||
RegisterAnalysisGroup<AliasAnalysis> Y(X);
|
||||
} // End of llvm namespace
|
||||
|
||||
// Register this pass...
|
||||
char LibCallAliasAnalysis::ID = 0;
|
||||
static RegisterPass<LibCallAliasAnalysis>
|
||||
X("libcall-aa", "LibCall Alias Analysis", false, true);
|
||||
|
||||
// Declare that we implement the AliasAnalysis interface
|
||||
static RegisterAnalysisGroup<AliasAnalysis> Y(X);
|
||||
|
||||
FunctionPass *llvm::createLibCallAliasAnalysisPass(LibCallInfo *LCI) {
|
||||
return new LibCallAliasAnalysis(LCI);
|
||||
|
Loading…
Reference in New Issue
Block a user