HomePhabricator

[AsmParser] Recommit: Hash is not a comment on some targets

Authored by olista01 on Aug 21 2017, 2:58 AM.

Description

[AsmParser] Recommit: Hash is not a comment on some targets

Re-committing after r311325 fixed an unintentional use of '#' comments in
clang.

The '#' token is not a comment for all targets (on ARM and AArch64 it marks an
immediate operand), so we shouldn't treat it as such.

Comments are already converted to AsmToken::EndOfStatement by
AsmLexer::LexLineComment, so this check was unnecessary.

Differential Revision: https://reviews.llvm.org/D36405

llvm-svn: 311326

Details

Committed
olista01Aug 21 2017, 2:58 AM
Differential Revision
D36405: [AsmParser] Hash is not a comment on some targets
Parents
rG7f1886447338: [ObjC] Use consistent comment style in inline asm
Branches
Unknown
Tags
Unknown