mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-19 02:42:58 +00:00
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:
parent
f22fd3f7b5
commit
78477ffdfd
@ -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) {
|
||||
|
@ -103,7 +103,7 @@ class TargetRegisterInfo;
|
||||
unsigned AntiDepReg,
|
||||
unsigned LastNewReg,
|
||||
const TargetRegisterClass *RC,
|
||||
SmallVector<unsigned, 2> &Forbid);
|
||||
SmallVectorImpl<unsigned> &Forbid);
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user