diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-13 16:57:55 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-13 16:57:55 +0000 |
commit | 9d2d053e11c1b5ddcd72f88f8a52d87d1dd74773 (patch) | |
tree | 8f2d0791b07f7ff6752b95d669dbfd07b842d541 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | dcacef3188da3fa8f70a831d0e6747bb20fa8797 (diff) | |
download | bcm5719-llvm-9d2d053e11c1b5ddcd72f88f8a52d87d1dd74773.tar.gz bcm5719-llvm-9d2d053e11c1b5ddcd72f88f8a52d87d1dd74773.zip |
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.
llvm-svn: 101147
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index bc3da1cbd0c..1f00ccbbb01 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -668,7 +668,7 @@ void LiveIntervals::computeIntervals() { DEBUG(dbgs() << MBB->getName() << ":\n"); // Create intervals for live-ins to this BB first. - for (MachineBasicBlock::const_livein_iterator LI = MBB->livein_begin(), + for (MachineBasicBlock::livein_iterator LI = MBB->livein_begin(), LE = MBB->livein_end(); LI != LE; ++LI) { handleLiveInRegister(MBB, MIIndex, getOrCreateInterval(*LI)); // Multiple live-ins can alias the same register. |