diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-08-21 16:06:48 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-08-21 16:06:48 +0000 |
commit | 7996d045825373d2bd0dbc8ad1d47bb03e81c368 (patch) | |
tree | 94dad808ff61f460d7b116967a2c4689c50ca2d6 /lib | |
parent | c5584763291fca947e28d3a347c24689677aed1f (diff) | |
download | external_llvm-7996d045825373d2bd0dbc8ad1d47bb03e81c368.zip external_llvm-7996d045825373d2bd0dbc8ad1d47bb03e81c368.tar.gz external_llvm-7996d045825373d2bd0dbc8ad1d47bb03e81c368.tar.bz2 |
Use typedefs. Fix indentation. Extracted from the Andy/PaX patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162283 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MC/MCParser/AsmParser.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp index c00598a..fcd5b15 100644 --- a/lib/MC/MCParser/AsmParser.cpp +++ b/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<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())) |