aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LivePhysRegs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/LivePhysRegs.cpp')
-rw-r--r--llvm/lib/CodeGen/LivePhysRegs.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LivePhysRegs.cpp b/llvm/lib/CodeGen/LivePhysRegs.cpp
index 547970e7ab5d..c0c7848139e4 100644
--- a/llvm/lib/CodeGen/LivePhysRegs.cpp
+++ b/llvm/lib/CodeGen/LivePhysRegs.cpp
@@ -125,8 +125,8 @@ void LivePhysRegs::print(raw_ostream &OS) const {
return;
}
- for (const_iterator I = begin(), E = end(); I != E; ++I)
- OS << " " << printReg(*I, TRI);
+ for (MCPhysReg R : *this)
+ OS << " " << printReg(R, TRI);
OS << "\n";
}
@@ -239,6 +239,10 @@ void LivePhysRegs::addLiveIns(const MachineBasicBlock &MBB) {
addBlockLiveIns(MBB);
}
+void LivePhysRegs::addLiveInsNoPristines(const MachineBasicBlock &MBB) {
+ addBlockLiveIns(MBB);
+}
+
void llvm::computeLiveIns(LivePhysRegs &LiveRegs,
const MachineBasicBlock &MBB) {
const MachineFunction &MF = *MBB.getParent();