mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-23 22:23:00 +00:00
Use SmallVectorImpl& instead of SmallVector to avoid repeating small vector size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186274 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -369,7 +369,7 @@ void PPCFrameLowering::emitPrologue(MachineFunction &MF) const {
|
||||
// Check if the link register (LR) must be saved.
|
||||
PPCFunctionInfo *FI = MF.getInfo<PPCFunctionInfo>();
|
||||
bool MustSaveLR = FI->mustSaveLR();
|
||||
const SmallVector<unsigned, 3> &MustSaveCRs = FI->getMustSaveCRs();
|
||||
const SmallVectorImpl<unsigned> &MustSaveCRs = FI->getMustSaveCRs();
|
||||
// Do we have a frame pointer for this function?
|
||||
bool HasFP = hasFP(MF);
|
||||
|
||||
@@ -642,7 +642,7 @@ void PPCFrameLowering::emitEpilogue(MachineFunction &MF,
|
||||
// Check if the link register (LR) has been saved.
|
||||
PPCFunctionInfo *FI = MF.getInfo<PPCFunctionInfo>();
|
||||
bool MustSaveLR = FI->mustSaveLR();
|
||||
const SmallVector<unsigned, 3> &MustSaveCRs = FI->getMustSaveCRs();
|
||||
const SmallVectorImpl<unsigned> &MustSaveCRs = FI->getMustSaveCRs();
|
||||
// Do we have a frame pointer for this function?
|
||||
bool HasFP = hasFP(MF);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user