Add more constantness in BlockFrequencyInfo.
[oota-llvm.git] / lib / Analysis / BlockFrequencyInfo.cpp
index 5bb3540a1ff8e7e1215289bef15d9cbf23e413e5..ee899153e1dc5f34b954e2980b0450cf54daaef9 100644 (file)
@@ -54,6 +54,6 @@ bool BlockFrequencyInfo::runOnFunction(Function &F) {
 /// that we should not rely on the value itself, but only on the comparison to
 /// the other block frequencies. We do this to avoid using of floating points.
 ///
-BlockFrequency BlockFrequencyInfo::getBlockFreq(BasicBlock *BB) {
+BlockFrequency BlockFrequencyInfo::getBlockFreq(BasicBlock *BB) const {
   return BFI->getBlockFreq(BB);
 }