From d2dc2a7af363ce0549ff904d316cd442fa47693f Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 21 Aug 2012 16:06:48 +0000 Subject: [PATCH] Use typedefs. Fix indentation. Extracted from the Andy/PaX patch. llvm-svn: 162283 --- llvm/lib/MC/MCParser/AsmParser.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp index c00598a21cc3..fcd5b15f8fbd 100644 --- a/llvm/lib/MC/MCParser/AsmParser.cpp +++ b/llvm/lib/MC/MCParser/AsmParser.cpp @@ -3075,8 +3075,8 @@ bool GenericAsmParser::ParseDirectiveMacro(StringRef Directive, 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 @@ bool AsmParser::ParseDirectiveIrp(SMLoc DirectiveLoc) { SmallString<256> Buf; raw_svector_ostream OS(Buf); - for (std::vector::iterator i = A.begin(), e = A.end(); i != e; - ++i) { - std::vector 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()))