summaryrefslogtreecommitdiff
path: root/llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2021-11-19 20:06:13 +0000
committerDimitry Andric <dim@FreeBSD.org>2021-11-19 20:06:13 +0000
commitc0981da47d5696fe36474fcf86b4ce03ae3ff818 (patch)
treef42add1021b9f2ac6a69ac7cf6c4499962739a45 /llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp
parent344a3780b2e33f6ca763666c380202b18aab72a3 (diff)
Diffstat (limited to 'llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp')
-rw-r--r--llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp52
1 files changed, 27 insertions, 25 deletions
diff --git a/llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp b/llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp
index fa4864299586..e61b07e973e9 100644
--- a/llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp
+++ b/llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp
@@ -12,37 +12,39 @@
using namespace llvm;
-SystemZMCAsmInfo::SystemZMCAsmInfo(const Triple &TT) {
- CodePointerSize = 8;
+SystemZMCAsmInfoELF::SystemZMCAsmInfoELF(const Triple &TT) {
+ AssemblerDialect = AD_ATT;
CalleeSaveStackSlotSize = 8;
+ CodePointerSize = 8;
+ Data64bitsDirective = "\t.quad\t";
+ ExceptionsType = ExceptionHandling::DwarfCFI;
IsLittleEndian = false;
-
- AssemblerDialect = TT.isOSzOS() ? AD_HLASM : AD_ATT;
-
MaxInstLength = 6;
-
- CommentString = AssemblerDialect == AD_HLASM ? "*" : "#";
- RestrictCommentStringToStartOfStatement = (AssemblerDialect == AD_HLASM);
- AllowAdditionalComments = (AssemblerDialect == AD_ATT);
- AllowAtAtStartOfIdentifier = (AssemblerDialect == AD_HLASM);
- AllowDollarAtStartOfIdentifier = (AssemblerDialect == AD_HLASM);
- AllowHashAtStartOfIdentifier = (AssemblerDialect == AD_HLASM);
- DotIsPC = (AssemblerDialect == AD_ATT);
- StarIsPC = (AssemblerDialect == AD_HLASM);
- EmitGNUAsmStartIndentationMarker = (AssemblerDialect == AD_ATT);
- AllowAtInName = (AssemblerDialect == AD_HLASM);
- EmitLabelsInUpperCase = (AssemblerDialect == AD_HLASM);
-
- ZeroDirective = "\t.space\t";
- Data64bitsDirective = "\t.quad\t";
- UsesELFSectionDirectiveForBSS = true;
SupportsDebugInformation = true;
- ExceptionsType = ExceptionHandling::DwarfCFI;
+ UsesELFSectionDirectiveForBSS = true;
+ ZeroDirective = "\t.space\t";
}
-bool SystemZMCAsmInfo::isAcceptableChar(char C) const {
- if (AssemblerDialect == AD_ATT)
- return MCAsmInfo::isAcceptableChar(C);
+SystemZMCAsmInfoGOFF::SystemZMCAsmInfoGOFF(const Triple &TT) {
+ AllowAdditionalComments = false;
+ AllowAtInName = true;
+ AllowAtAtStartOfIdentifier = true;
+ AllowDollarAtStartOfIdentifier = true;
+ AllowHashAtStartOfIdentifier = true;
+ AssemblerDialect = AD_HLASM;
+ CalleeSaveStackSlotSize = 8;
+ CodePointerSize = 8;
+ CommentString = "*";
+ DotIsPC = false;
+ EmitGNUAsmStartIndentationMarker = false;
+ EmitLabelsInUpperCase = true;
+ IsLittleEndian = false;
+ MaxInstLength = 6;
+ RestrictCommentStringToStartOfStatement = true;
+ StarIsPC = true;
+ SupportsDebugInformation = true;
+}
+bool SystemZMCAsmInfoGOFF::isAcceptableChar(char C) const {
return MCAsmInfo::isAcceptableChar(C) || C == '#';
}