diff options
author | Cameron Zwarich <zwarich@apple.com> | 2013-02-17 03:48:23 +0000 |
---|---|---|
committer | Cameron Zwarich <zwarich@apple.com> | 2013-02-17 03:48:23 +0000 |
commit | 7324d4e593ee2611ee6b272c03b15541fe2df62e (patch) | |
tree | cbd85fdde98983f13e131f616464ff3447649396 | |
parent | 0c222835982bae5e4831e16090f6ce594ef541a6 (diff) | |
download | external_llvm-7324d4e593ee2611ee6b272c03b15541fe2df62e.zip external_llvm-7324d4e593ee2611ee6b272c03b15541fe2df62e.tar.gz external_llvm-7324d4e593ee2611ee6b272c03b15541fe2df62e.tar.bz2 |
Use ArrayRef instead of a reference to a SmallVectorImpl.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175385 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/CodeGen/LiveIntervalAnalysis.h | 2 | ||||
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h index f422a6f..46dfd92 100644 --- a/include/llvm/CodeGen/LiveIntervalAnalysis.h +++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h @@ -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. // diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 3c67be5..e09ac4b 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -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)) |