Refactor and cleanup Assembly Parsing / Lexing
Audit RequiredrL273007

Description

Refactor and cleanup Assembly Parsing / Lexing

Recommiting after fixing non-atomic insert to front of SmallVector in
MCAsmLexer.h

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

Details

Auditors
grosbach
H23 Triggered Audit
Committed
niravdJun 17 2016, 9:06 AM
Differential Revision
D20009: Refactor and cleanup Assembly Parsing / Lexing
Parents
rL273006: Don't confuse input and output section offsets.
Branches
Unknown
Tags
Unknown