mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 20:26:07 +00:00
Rename a parameter to avoid confusion with a local variable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118656 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -326,15 +326,15 @@ public:
|
|||||||
|
|
||||||
static ARMOperand *
|
static ARMOperand *
|
||||||
CreateRegList(const SmallVectorImpl<std::pair<unsigned, SMLoc> > &Regs,
|
CreateRegList(const SmallVectorImpl<std::pair<unsigned, SMLoc> > &Regs,
|
||||||
SMLoc S, SMLoc E) {
|
SMLoc StartLoc, SMLoc EndLoc) {
|
||||||
ARMOperand *Op = new ARMOperand(RegisterList);
|
ARMOperand *Op = new ARMOperand(RegisterList);
|
||||||
Op->RegList.Registers = new SmallVector<unsigned, 32>();
|
Op->RegList.Registers = new SmallVector<unsigned, 32>();
|
||||||
for (SmallVectorImpl<std::pair<unsigned, SMLoc> >::const_iterator
|
for (SmallVectorImpl<std::pair<unsigned, SMLoc> >::const_iterator
|
||||||
I = Regs.begin(), E = Regs.end(); I != E; ++I)
|
I = Regs.begin(), E = Regs.end(); I != E; ++I)
|
||||||
Op->RegList.Registers->push_back(I->first);
|
Op->RegList.Registers->push_back(I->first);
|
||||||
std::sort(Op->RegList.Registers->begin(), Op->RegList.Registers->end());
|
std::sort(Op->RegList.Registers->begin(), Op->RegList.Registers->end());
|
||||||
Op->StartLoc = S;
|
Op->StartLoc = StartLoc;
|
||||||
Op->EndLoc = E;
|
Op->EndLoc = EndLoc;
|
||||||
return Op;
|
return Op;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user