[llvm] r175385 - Use ArrayRef instead of a reference to a SmallVectorImpl.

Cameron Zwarich zwarich at apple.com
Sat Feb 16 19:48:23 PST 2013


Author: zwarich
Date: Sat Feb 16 21:48:23 2013
New Revision: 175385

URL: http://llvm.org/viewvc/llvm-project?rev=175385&view=rev
Log:
Use ArrayRef instead of a reference to a SmallVectorImpl.

Modified:
    llvm/trunk/include/llvm/CodeGen/LiveIntervalAnalysis.h
    llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp

Modified: llvm/trunk/include/llvm/CodeGen/LiveIntervalAnalysis.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/LiveIntervalAnalysis.h?rev=175385&r1=175384&r2=175385&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/LiveIntervalAnalysis.h (original)
+++ llvm/trunk/include/llvm/CodeGen/LiveIntervalAnalysis.h Sat Feb 16 21:48:23 2013
@@ -294,7 +294,7 @@ namespace llvm {
     void repairIntervalsInRange(MachineBasicBlock *MBB,
                                 MachineBasicBlock::reverse_iterator RBegin,
                                 MachineBasicBlock::reverse_iterator REnd,
-                                SmallVectorImpl<unsigned> &OrigRegs);
+                                ArrayRef<unsigned> OrigRegs);
 
     // Register mask functions.
     //

Modified: llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp?rev=175385&r1=175384&r2=175385&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveIntervalAnalysis.cpp Sat Feb 16 21:48:23 2013
@@ -1037,7 +1037,7 @@ void
 LiveIntervals::repairIntervalsInRange(MachineBasicBlock *MBB,
                                      MachineBasicBlock::reverse_iterator RBegin,
                                      MachineBasicBlock::reverse_iterator REnd,
-                                     SmallVectorImpl<unsigned> &OrigRegs) {
+                                      ArrayRef<unsigned> OrigRegs) {
   for (unsigned i = 0, e = OrigRegs.size(); i != e; ++i) {
     unsigned Reg = OrigRegs[i];
     if (!TargetRegisterInfo::isVirtualRegister(Reg))





More information about the llvm-commits mailing list