summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorJakub Staszak <kubastaszak@gmail.com>2013-03-18 23:40:46 +0000
committerJakub Staszak <kubastaszak@gmail.com>2013-03-18 23:40:46 +0000
commit26ac8a7b16621d854ec438aca17dbec6d17dce43 (patch)
tree219edf5b124de557e37b0b90356333f51c851266 /llvm/lib/CodeGen
parent1c00ce5070fb85e7a5a62000b6decceee81d7e52 (diff)
downloadbcm5719-llvm-26ac8a7b16621d854ec438aca17dbec6d17dce43.tar.gz
bcm5719-llvm-26ac8a7b16621d854ec438aca17dbec6d17dce43.zip
Add some constantness.
llvm-svn: 177356
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/LiveRangeEdit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveRangeEdit.cpp b/llvm/lib/CodeGen/LiveRangeEdit.cpp
index 3b28e6afb67..7793e96c354 100644
--- a/llvm/lib/CodeGen/LiveRangeEdit.cpp
+++ b/llvm/lib/CodeGen/LiveRangeEdit.cpp
@@ -77,7 +77,7 @@ bool LiveRangeEdit::anyRematerializable(AliasAnalysis *aa) {
/// OrigIdx are also available with the same value at UseIdx.
bool LiveRangeEdit::allUsesAvailableAt(const MachineInstr *OrigMI,
SlotIndex OrigIdx,
- SlotIndex UseIdx) {
+ SlotIndex UseIdx) const {
OrigIdx = OrigIdx.getRegSlot(true);
UseIdx = UseIdx.getRegSlot(true);
for (unsigned i = 0, e = OrigMI->getNumOperands(); i != e; ++i) {
OpenPOWER on IntegriCloud