summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MIRPrinter.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-10-16 19:08:41 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-10-16 19:08:41 +0000
commit72518eaa6f5c85a1d633b91a1f0e30b2a84ca275 (patch)
treee772060b1faf751234d2a8dae7627038808f9169 /llvm/lib/CodeGen/MIRPrinter.cpp
parent3f9b4b7c91f9bd4364aa115c9294951b05754933 (diff)
downloadbcm5719-llvm-72518eaa6f5c85a1d633b91a1f0e30b2a84ca275.tar.gz
bcm5719-llvm-72518eaa6f5c85a1d633b91a1f0e30b2a84ca275.zip
Add iterator range MachineRegisterInfo::liveins(), adopt users, NFC
llvm-svn: 315927
Diffstat (limited to 'llvm/lib/CodeGen/MIRPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/MIRPrinter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp
index ae1bb36c6aa..528140234ee 100644
--- a/llvm/lib/CodeGen/MIRPrinter.cpp
+++ b/llvm/lib/CodeGen/MIRPrinter.cpp
@@ -297,11 +297,11 @@ void MIRPrinter::convert(yaml::MachineFunction &MF,
}
// Print the live ins.
- for (auto I = RegInfo.livein_begin(), E = RegInfo.livein_end(); I != E; ++I) {
+ for (std::pair<unsigned, unsigned> LI : RegInfo.liveins()) {
yaml::MachineFunctionLiveIn LiveIn;
- printReg(I->first, LiveIn.Register, TRI);
- if (I->second)
- printReg(I->second, LiveIn.VirtualRegister, TRI);
+ printReg(LI.first, LiveIn.Register, TRI);
+ if (LI.second)
+ printReg(LI.second, LiveIn.VirtualRegister, TRI);
MF.LiveIns.push_back(LiveIn);
}
OpenPOWER on IntegriCloud