[PATCH] D43936: [Asm] Refactor debug printing of AsmToken

Oliver Stannard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 1 03:45:59 PST 2018


olista01 created this revision.
olista01 added reviewers: rengolin, SjoerdMeijer, christof.

- Move printing from llvm-mc to the AsmToken class, so that it can be used elsewhere.
- Add 5 cases which were missed: BigNum, Comment, HashDirective, Space and BackSlash, and remove the default case so that -Wswitch will catch this error in future.

This is almost NFC, except for the fact that llvm-mc can now print those 5 tokens in -as-lex mode.


Repository:
  rL LLVM

https://reviews.llvm.org/D43936

Files:
  include/llvm/MC/MCParser/MCAsmLexer.h
  lib/MC/MCParser/MCAsmLexer.cpp
  tools/llvm-mc/llvm-mc.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43936.136492.patch
Type: text/x-patch
Size: 11126 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180301/2b18c60b/attachment.bin>


More information about the llvm-commits mailing list