[MC][AMDGPU] Consume EndOfStatement in asm parser
authorScott Linder <Scott.Linder@amd.com>
Wed, 9 Dec 2020 21:20:28 +0000 (21:20 +0000)
committerScott Linder <Scott.Linder@amd.com>
Wed, 9 Dec 2020 21:45:55 +0000 (21:45 +0000)
commit9260a999990cd8ee877e1cb9b517166579eca4f3
treeb2607328abead71cca3ab763dc7bb42b674143e7
parent5ff5cf8e057782e3e648ecf5ccf1d9990b53ee90
[MC][AMDGPU] Consume EndOfStatement in asm parser

Avoids spurious newlines showing up in the output when emitting assembly
via MC.

Reviewed By: MaskRay, arsenm

Differential Revision: https://reviews.llvm.org/D92690
llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
llvm/test/MC/AMDGPU/round-trip.s [new file with mode: 0644]