[llvm] r268677 - Remove unnecessary anonymous namespace from a header
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Thu May 5 13:30:49 PDT 2016
Author: rnk
Date: Thu May 5 15:30:48 2016
New Revision: 268677
URL: http://llvm.org/viewvc/llvm-project?rev=268677&view=rev
Log:
Remove unnecessary anonymous namespace from a header
Modified:
llvm/trunk/include/llvm/Analysis/BlockFrequencyInfoImpl.h
Modified: llvm/trunk/include/llvm/Analysis/BlockFrequencyInfoImpl.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/BlockFrequencyInfoImpl.h?rev=268677&r1=268676&r2=268677&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/BlockFrequencyInfoImpl.h (original)
+++ llvm/trunk/include/llvm/Analysis/BlockFrequencyInfoImpl.h Thu May 5 15:30:48 2016
@@ -1173,12 +1173,10 @@ void BlockFrequencyInfoImpl<BT>::compute
updateLoopWithIrreducible(*OuterLoop);
}
-namespace {
// A helper function that converts a branch probability into weight.
inline uint32_t getWeightFromBranchProb(const BranchProbability Prob) {
return Prob.getNumerator();
}
-} // namespace
template <class BT>
bool
More information about the llvm-commits
mailing list