diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-06-13 18:38:56 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-06-13 18:38:56 +0000 |
commit | afa88eaf659a6151624fd11a61d038864339e8e4 (patch) | |
tree | 5300944f78a875f6077938afb33ab96af186cb5e /lib/Analysis | |
parent | 00404bfaef2cd9516191fd35cc08a94a536b1048 (diff) | |
download | external_llvm-afa88eaf659a6151624fd11a61d038864339e8e4.zip external_llvm-afa88eaf659a6151624fd11a61d038864339e8e4.tar.gz external_llvm-afa88eaf659a6151624fd11a61d038864339e8e4.tar.bz2 |
Move class into an anonymous namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132925 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/BranchProbabilityInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/BranchProbabilityInfo.cpp b/lib/Analysis/BranchProbabilityInfo.cpp index 812fac0..a2e8960 100644 --- a/lib/Analysis/BranchProbabilityInfo.cpp +++ b/lib/Analysis/BranchProbabilityInfo.cpp @@ -25,7 +25,7 @@ INITIALIZE_PASS_END(BranchProbabilityInfo, "branch-prob", char BranchProbabilityInfo::ID = 0; - +namespace { // Please note that BranchProbabilityAnalysis is not a FunctionPass. // It is created by BranchProbabilityInfo (which is a FunctionPass), which // provides a clear interface. Thanks to that, all heuristics and other @@ -143,6 +143,7 @@ public: bool runOnFunction(Function &F); }; +} // end anonymous namespace // Calculate Edge Weights using "Return Heuristics". Predict a successor which // leads directly to Return Instruction will not be taken. |