summaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveVariables.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-13 16:57:55 +0000
committerDan Gohman <gohman@apple.com>2010-04-13 16:57:55 +0000
commit81bf03eb5cd68243eabb52505105aa5f4a831bf3 (patch)
treebd64eb5ef41beb17b468b27beaf9352bdf8f5d60 /lib/CodeGen/LiveVariables.cpp
parent9e9aa44d1a33fb845268ba07b726a31f26195690 (diff)
downloadllvm-81bf03eb5cd68243eabb52505105aa5f4a831bf3.tar.gz
llvm-81bf03eb5cd68243eabb52505105aa5f4a831bf3.tar.bz2
llvm-81bf03eb5cd68243eabb52505105aa5f4a831bf3.tar.xz
Eliminate MachineBasicBlock::const_livein_iterator and make
MachineBasicBlock::livein_iterator a const_iterator, because clients shouldn't ever be using the iterator interface to mutate the livein set. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101147 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveVariables.cpp')
-rw-r--r--lib/CodeGen/LiveVariables.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveVariables.cpp b/lib/CodeGen/LiveVariables.cpp
index ca8ecff8e6..079684eea0 100644
--- a/lib/CodeGen/LiveVariables.cpp
+++ b/lib/CodeGen/LiveVariables.cpp
@@ -531,7 +531,7 @@ bool LiveVariables::runOnMachineFunction(MachineFunction &mf) {
// Mark live-in registers as live-in.
SmallVector<unsigned, 4> Defs;
- for (MachineBasicBlock::const_livein_iterator II = MBB->livein_begin(),
+ for (MachineBasicBlock::livein_iterator II = MBB->livein_begin(),
EE = MBB->livein_end(); II != EE; ++II) {
assert(TargetRegisterInfo::isPhysicalRegister(*II) &&
"Cannot have a live-in virtual register!");