diff options
author | Dan Gohman <gohman@apple.com> | 2008-05-13 00:00:25 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-05-13 00:00:25 +0000 |
commit | 844731a7f1909f55935e3514c9e713a62d67662e (patch) | |
tree | 9221560124d6ed762ef6e5bbda45f4038dacdeb0 /lib/Analysis/ProfileInfo.cpp | |
parent | a334d5f5355be5c26ea2d3c28456722afd1a4559 (diff) | |
download | llvm-844731a7f1909f55935e3514c9e713a62d67662e.tar.gz llvm-844731a7f1909f55935e3514c9e713a62d67662e.tar.bz2 llvm-844731a7f1909f55935e3514c9e713a62d67662e.tar.xz |
Clean up the use of static and anonymous namespaces. This turned up
several things that were neither in an anonymous namespace nor static
but not intended to be global.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51017 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ProfileInfo.cpp')
-rw-r--r-- | lib/Analysis/ProfileInfo.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/lib/Analysis/ProfileInfo.cpp b/lib/Analysis/ProfileInfo.cpp index 2ee398d1aa..047491baee 100644 --- a/lib/Analysis/ProfileInfo.cpp +++ b/lib/Analysis/ProfileInfo.cpp @@ -21,9 +21,7 @@ using namespace llvm; // Register the ProfileInfo interface, providing a nice name to refer to. -namespace { - RegisterAnalysisGroup<ProfileInfo> Z("Profile Information"); -} +static RegisterAnalysisGroup<ProfileInfo> Z("Profile Information"); char ProfileInfo::ID = 0; ProfileInfo::~ProfileInfo() {} @@ -89,14 +87,14 @@ namespace { static char ID; // Class identification, replacement for typeinfo NoProfileInfo() : ImmutablePass((intptr_t)&ID) {} }; +} // End of anonymous namespace - char NoProfileInfo::ID = 0; - // Register this pass... - RegisterPass<NoProfileInfo> - X("no-profile", "No Profile Information", false, true); +char NoProfileInfo::ID = 0; +// Register this pass... +static RegisterPass<NoProfileInfo> +X("no-profile", "No Profile Information", false, true); - // Declare that we implement the ProfileInfo interface - RegisterAnalysisGroup<ProfileInfo, true> Y(X); -} // End of anonymous namespace +// Declare that we implement the ProfileInfo interface +static RegisterAnalysisGroup<ProfileInfo, true> Y(X); ImmutablePass *llvm::createNoProfileInfoPass() { return new NoProfileInfo(); } |