[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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 11126 bytes
Desc: not available
More information about the llvm-commits