diff options
| author | Tim Northover <tnorthover@apple.com> | 2015-02-21 02:11:17 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2015-02-21 02:11:17 +0000 |
| commit | 3b6b7ca2bc6e0ea188bc3501f25384eaf97eb55a (patch) | |
| tree | 5de33f3a5e5e001d1fba1769d37605cd98efe584 /llvm/lib/Target/MSP430/MSP430ISelLowering.cpp | |
| parent | 6b0d0464a8654619ab9e14f0f1096b398f9819c2 (diff) | |
| download | bcm5719-llvm-3b6b7ca2bc6e0ea188bc3501f25384eaf97eb55a.tar.gz bcm5719-llvm-3b6b7ca2bc6e0ea188bc3501f25384eaf97eb55a.zip | |
CodeGen: convert CCState interface to using ArrayRefs
Everyone except R600 was manually passing the length of a static array
at each callsite, calculated in a variety of interesting ways. Far
easier to let ArrayRef handle that.
There should be no functional change, but out of tree targets may have
to tweak their calls as with these examples.
llvm-svn: 230118
Diffstat (limited to 'llvm/lib/Target/MSP430/MSP430ISelLowering.cpp')
| -rw-r--r-- | llvm/lib/Target/MSP430/MSP430ISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp b/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp index ca83b6d3b18..6f55a38f460 100644 --- a/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp +++ b/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp @@ -328,7 +328,7 @@ static void AnalyzeArguments(CCState &State, if (!UseStack && Parts <= RegsLeft) { unsigned FirstVal = ValNo; for (unsigned j = 0; j < Parts; j++) { - unsigned Reg = State.AllocateReg(RegList, NbRegs); + unsigned Reg = State.AllocateReg(RegList); State.addLoc(CCValAssign::getReg(ValNo++, ArgVT, Reg, LocVT, LocInfo)); RegsLeft--; } |

