Use ArrayRef instead of a reference to a SmallVectorImpl.

llvm-svn: 175385
This commit is contained in:
Cameron Zwarich 2013-02-17 03:48:23 +00:00
parent b633eab8cb
commit 1286ef9c89
2 changed files with 2 additions and 2 deletions

View File

@ -294,7 +294,7 @@ namespace llvm {
void repairIntervalsInRange(MachineBasicBlock *MBB, void repairIntervalsInRange(MachineBasicBlock *MBB,
MachineBasicBlock::reverse_iterator RBegin, MachineBasicBlock::reverse_iterator RBegin,
MachineBasicBlock::reverse_iterator REnd, MachineBasicBlock::reverse_iterator REnd,
SmallVectorImpl<unsigned> &OrigRegs); ArrayRef<unsigned> OrigRegs);
// Register mask functions. // Register mask functions.
// //

View File

@ -1037,7 +1037,7 @@ void
LiveIntervals::repairIntervalsInRange(MachineBasicBlock *MBB, LiveIntervals::repairIntervalsInRange(MachineBasicBlock *MBB,
MachineBasicBlock::reverse_iterator RBegin, MachineBasicBlock::reverse_iterator RBegin,
MachineBasicBlock::reverse_iterator REnd, MachineBasicBlock::reverse_iterator REnd,
SmallVectorImpl<unsigned> &OrigRegs) { ArrayRef<unsigned> OrigRegs) {
for (unsigned i = 0, e = OrigRegs.size(); i != e; ++i) { for (unsigned i = 0, e = OrigRegs.size(); i != e; ++i) {
unsigned Reg = OrigRegs[i]; unsigned Reg = OrigRegs[i];
if (!TargetRegisterInfo::isVirtualRegister(Reg)) if (!TargetRegisterInfo::isVirtualRegister(Reg))