[llvm-commits] [llvm] r118656 - /llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Matt Beaumont-Gay
matthewbg at google.com
Tue Nov 9 16:08:58 PST 2010
Author: matthewbg
Date: Tue Nov 9 18:08:58 2010
New Revision: 118656
URL: http://llvm.org/viewvc/llvm-project?rev=118656&view=rev
Log:
Rename a parameter to avoid confusion with a local variable
Modified:
llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Modified: llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp?rev=118656&r1=118655&r2=118656&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp Tue Nov 9 18:08:58 2010
@@ -326,15 +326,15 @@
static ARMOperand *
CreateRegList(const SmallVectorImpl<std::pair<unsigned, SMLoc> > &Regs,
- SMLoc S, SMLoc E) {
+ SMLoc StartLoc, SMLoc EndLoc) {
ARMOperand *Op = new ARMOperand(RegisterList);
Op->RegList.Registers = new SmallVector<unsigned, 32>();
for (SmallVectorImpl<std::pair<unsigned, SMLoc> >::const_iterator
I = Regs.begin(), E = Regs.end(); I != E; ++I)
Op->RegList.Registers->push_back(I->first);
std::sort(Op->RegList.Registers->begin(), Op->RegList.Registers->end());
- Op->StartLoc = S;
- Op->EndLoc = E;
+ Op->StartLoc = StartLoc;
+ Op->EndLoc = EndLoc;
return Op;
}
More information about the llvm-commits
mailing list