diff options
author | Andrew Trick <atrick@apple.com> | 2013-10-14 22:18:59 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2013-10-14 22:18:59 +0000 |
commit | e2f7cc4cf36f4ce132fd44f9b08de6ebbd8c5e83 (patch) | |
tree | ad9874d2e812db52aedfc375e6edce49be1ca05b /llvm/lib/CodeGen/LiveRegUnits.cpp | |
parent | 8460a3bfa17ee297167abf98be0d27b81152a948 (diff) | |
download | bcm5719-llvm-e2f7cc4cf36f4ce132fd44f9b08de6ebbd8c5e83.tar.gz bcm5719-llvm-e2f7cc4cf36f4ce132fd44f9b08de6ebbd8c5e83.zip |
LiveRegUnits: Use *MBB for consistency and convenience.
llvm-svn: 192634
Diffstat (limited to 'llvm/lib/CodeGen/LiveRegUnits.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveRegUnits.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/LiveRegUnits.cpp b/llvm/lib/CodeGen/LiveRegUnits.cpp index 5ff27dd1aaf..6221ca2e479 100644 --- a/llvm/lib/CodeGen/LiveRegUnits.cpp +++ b/llvm/lib/CodeGen/LiveRegUnits.cpp @@ -102,10 +102,10 @@ void LiveRegUnits::stepForward(const MachineInstr &MI, } /// Adds all registers in the live-in list of block @p BB. -void LiveRegUnits::addLiveIns(const MachineBasicBlock &BB, +void LiveRegUnits::addLiveIns(const MachineBasicBlock *MBB, const MCRegisterInfo &MCRI) { - for (MachineBasicBlock::livein_iterator L = BB.livein_begin(), - LE = BB.livein_end(); L != LE; ++L) { + for (MachineBasicBlock::livein_iterator L = MBB->livein_begin(), + LE = MBB->livein_end(); L != LE; ++L) { addReg(*L, MCRI); } } |