[SystemZ][z/OS] Introduce the GOFFMCAsmInfo Interface for z/OS
authorAnirudh Prasad <anirudh_prasad@hotmail.com>
Fri, 24 Sep 2021 20:25:27 +0000 (16:25 -0400)
committerAnirudh Prasad <anirudh_prasad@hotmail.com>
Fri, 24 Sep 2021 20:25:41 +0000 (16:25 -0400)
commita9ae2436fc0dcb68ef8a478948e46d0a9998b0c9
tree0af76af88e35643da6eebb4e2a4faba6388bc1ff
parent5969e5743ae9cd17d08436a4b1139b8c4a24cc4d
[SystemZ][z/OS] Introduce the GOFFMCAsmInfo Interface for z/OS

- This patch adds in the GOFFMCAsmInfo interfaces for the z/OS target.
- This patch decouples the previously existing SystemZMCAsmInfo interface for the ELF target and the z/OS target.
- This patch also removes a small test in the SystemZAsmLexerTest.cpp. The reason for this is because, the test is set up for the s390x-ibm-linux (SystemZ ELF triple), and the test checks a function which is overridden only for the z/OS target. The reason we can't change the test to use a z/OS triple outright is because there is still missing support which prevents the successful running of a test (assert in AsmParser.cpp due to missing GOFFAsmParser support)

Reviewed By: uweigand, abhina.sreeskantharajan

Differential Revision: https://reviews.llvm.org/D110077
llvm/include/llvm/MC/MCAsmInfoGOFF.h [new file with mode: 0644]
llvm/lib/MC/CMakeLists.txt
llvm/lib/MC/MCAsmInfoGOFF.cpp [new file with mode: 0644]
llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp
llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.h
llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.cpp
llvm/unittests/MC/SystemZ/SystemZAsmLexerTest.cpp