[llvm-commits] [llvm] r162283 - /llvm/trunk/lib/MC/MCParser/AsmParser.cpp
Rafael Espindola
rafael.espindola at gmail.com
Tue Aug 21 09:06:48 PDT 2012
Author: rafael
Date: Tue Aug 21 11:06:48 2012
New Revision: 162283
URL: http://llvm.org/viewvc/llvm-project?rev=162283&view=rev
Log:
Use typedefs. Fix indentation. Extracted from the Andy/PaX patch.
Modified:
llvm/trunk/lib/MC/MCParser/AsmParser.cpp
Modified: llvm/trunk/lib/MC/MCParser/AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCParser/AsmParser.cpp?rev=162283&r1=162282&r2=162283&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCParser/AsmParser.cpp (original)
+++ llvm/trunk/lib/MC/MCParser/AsmParser.cpp Tue Aug 21 11:06:48 2012
@@ -3075,8 +3075,8 @@
MacroParameters Parameters;
if (getLexer().isNot(AsmToken::EndOfStatement)) {
- for(;;) {
- StringRef Parameter;
+ for (;;) {
+ MacroParameter Parameter;
if (getParser().ParseIdentifier(Parameter))
return TokError("expected identifier in directive");
Parameters.push_back(Parameter);
@@ -3321,9 +3321,8 @@
SmallString<256> Buf;
raw_svector_ostream OS(Buf);
- for (std::vector<MacroArgument>::iterator i = A.begin(), e = A.end(); i != e;
- ++i) {
- std::vector<MacroArgument> Args;
+ for (MacroArguments::iterator i = A.begin(), e = A.end(); i != e; ++i) {
+ MacroArguments Args;
Args.push_back(*i);
if (expandMacro(OS, M->Body, Parameters, Args, getTok().getLoc()))
More information about the llvm-commits
mailing list