diff options
| author | Nirav Dave <niravd@google.com> | 2016-06-16 20:34:22 +0000 |
|---|---|---|
| committer | Nirav Dave <niravd@google.com> | 2016-06-16 20:34:22 +0000 |
| commit | c19c3260df7c9745ecc3ac35b358ae0a50c2bbc2 (patch) | |
| tree | 9b9bbe029c9edd2b21de59285bdb70c6585cdeaf /llvm/lib/Target/PowerPC/AsmParser | |
| parent | bf35771bcc257db24eddd5b41f7f8b76f9f39b45 (diff) | |
| download | bcm5719-llvm-c19c3260df7c9745ecc3ac35b358ae0a50c2bbc2.tar.gz bcm5719-llvm-c19c3260df7c9745ecc3ac35b358ae0a50c2bbc2.zip | |
Refactor and cleanup Assembly Parsing / Lexing
Add explicit Comment Token in Assembly Lexing for future support for
outputting explicit comments from inline assembly. As part of this,
CPPHash Directives are now explicitly distinguished from Hash line
comments in Lexer.
Line comments are recorded as EndOfStatement tokens, not Comment tokens
to simplify compatibility with current TargetParsers. This slightly
complicates comment output.
This remove all lexing tasks out of the parser, does minor cleanup
to remove extraneous newlines Asm Output, and some improvements white
space handling.
Reviewers: rtrieu, dwmw2, rnk
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D20009
llvm-svn: 272953
Diffstat (limited to 'llvm/lib/Target/PowerPC/AsmParser')
| -rw-r--r-- | llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp b/llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp index da48422b46e..4181775fc6d 100644 --- a/llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp +++ b/llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp @@ -1710,7 +1710,7 @@ bool PPCAsmParser::ParseInstruction(ParseInstructionInfo &Info, StringRef Name, while (getLexer().isNot(AsmToken::EndOfStatement) && getLexer().is(AsmToken::Comma)) { // Consume the comma token - getLexer().Lex(); + Lex(); // Parse the next operand if (ParseOperand(Operands)) |

