diff options
author | Dan Gohman <gohman@apple.com> | 2008-05-15 19:43:55 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-05-15 19:43:55 +0000 |
commit | d208a803a614a0ce6d5a8c6df045fd130f5dfed7 (patch) | |
tree | d970c05916a6398d8f6d4f51ea55655a6a6f86a1 /lib/Analysis/LibCallAliasAnalysis.cpp | |
parent | 0c87f2d824c684a1e146261b88016d136e6f0b3e (diff) | |
download | external_llvm-d208a803a614a0ce6d5a8c6df045fd130f5dfed7.zip external_llvm-d208a803a614a0ce6d5a8c6df045fd130f5dfed7.tar.gz external_llvm-d208a803a614a0ce6d5a8c6df045fd130f5dfed7.tar.bz2 |
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
Diffstat (limited to 'lib/Analysis/LibCallAliasAnalysis.cpp')
-rw-r--r-- | lib/Analysis/LibCallAliasAnalysis.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/Analysis/LibCallAliasAnalysis.cpp b/lib/Analysis/LibCallAliasAnalysis.cpp index 2fd17cf..2627d67 100644 --- a/lib/Analysis/LibCallAliasAnalysis.cpp +++ b/lib/Analysis/LibCallAliasAnalysis.cpp @@ -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); }; +} // End of llvm namespace - // Register this pass... - char LibCallAliasAnalysis::ID = 0; - RegisterPass<LibCallAliasAnalysis> - X("libcall-aa", "LibCall Alias Analysis", false, true); +// 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 - RegisterAnalysisGroup<AliasAnalysis> Y(X); -} // End of llvm namespace +// Declare that we implement the AliasAnalysis interface +static RegisterAnalysisGroup<AliasAnalysis> Y(X); FunctionPass *llvm::createLibCallAliasAnalysisPass(LibCallInfo *LCI) { return new LibCallAliasAnalysis(LCI); |