aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorJakub Staszak <jstaszak@apple.com>2011-08-03 21:30:57 +0000
committerJakub Staszak <jstaszak@apple.com>2011-08-03 21:30:57 +0000
commit8ea45231dc6c30d0c4a55ce038a08edccc308a73 (patch)
treeb5a8e4e6989194e4199a7e14c2333c6635a35ad0 /include/llvm
parenta9362caccb1baa0656697d7e4739b4c31c0813ae (diff)
downloadexternal_llvm-8ea45231dc6c30d0c4a55ce038a08edccc308a73.zip
external_llvm-8ea45231dc6c30d0c4a55ce038a08edccc308a73.tar.gz
external_llvm-8ea45231dc6c30d0c4a55ce038a08edccc308a73.tar.bz2
Add more constantness in BlockFrequencyInfo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136816 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Analysis/BlockFrequencyInfo.h2
-rw-r--r--include/llvm/CodeGen/MachineBlockFrequencyInfo.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Analysis/BlockFrequencyInfo.h b/include/llvm/Analysis/BlockFrequencyInfo.h
index bd9807d..5978d5f 100644
--- a/include/llvm/Analysis/BlockFrequencyInfo.h
+++ b/include/llvm/Analysis/BlockFrequencyInfo.h
@@ -46,7 +46,7 @@ public:
/// 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 getBlockFreq(BasicBlock *BB);
+ BlockFrequency getBlockFreq(BasicBlock *BB) const;
};
}
diff --git a/include/llvm/CodeGen/MachineBlockFrequencyInfo.h b/include/llvm/CodeGen/MachineBlockFrequencyInfo.h
index 63ab2ef..416d40b 100644
--- a/include/llvm/CodeGen/MachineBlockFrequencyInfo.h
+++ b/include/llvm/CodeGen/MachineBlockFrequencyInfo.h
@@ -46,7 +46,7 @@ public:
/// 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 getBlockFreq(MachineBasicBlock *MBB);
+ BlockFrequency getBlockFreq(MachineBasicBlock *MBB) const;
};
}