Use SmallVectorImpl instead of SmallVector as method argument to avoid specifying vector size.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185513 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Craig Topper 2013-07-03 05:16:59 +00:00
parent f22fd3f7b5
commit 78477ffdfd
2 changed files with 2 additions and 2 deletions

View File

@ -361,7 +361,7 @@ findSuitableFreeRegister(RegRefIter RegRefBegin,
unsigned AntiDepReg,
unsigned LastNewReg,
const TargetRegisterClass *RC,
SmallVector<unsigned, 2> &Forbid)
SmallVectorImpl<unsigned> &Forbid)
{
ArrayRef<MCPhysReg> Order = RegClassInfo.getOrder(RC);
for (unsigned i = 0; i != Order.size(); ++i) {

View File

@ -103,7 +103,7 @@ class TargetRegisterInfo;
unsigned AntiDepReg,
unsigned LastNewReg,
const TargetRegisterClass *RC,
SmallVector<unsigned, 2> &Forbid);
SmallVectorImpl<unsigned> &Forbid);
};
}