Skip to content

Commit 3c2b907

Browse files
committed
More Z80MCAsmInfo fixes
1 parent 49f8da5 commit 3c2b907

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/lib/Target/Z80/MCTargetDesc/Z80MCAsmInfo.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,17 @@ Z80MCAsmInfoELF::Z80MCAsmInfoELF(const Triple &T) {
3636
CodePointerSize = CalleeSaveStackSlotSize = Is16Bit ? 2 : 3;
3737
MaxInstLength = 6;
3838

39+
// Common to both GAS and fasmg
3940
CommentString = ";";
40-
Code16Directive = ".assume\tadl = 0";
41-
Code24Directive = ".assume\tadl = 1";
4241
Code32Directive = Code64Directive = nullptr;
4342
UseIntegratedAssembler = false;
4443
AssemblerDialect = !Is16Bit;
44+
HasFunctionAlignment = false;
45+
ExceptionsType = ExceptionHandling::SjLj;
4546

4647
if (!Z80GasStyle) {
48+
Code16Directive = "assume\tadl = 0";
49+
Code24Directive = "assume\tadl = 1";
4750
DollarIsPC = true;
4851
SeparatorString = nullptr;
4952
PrivateGlobalPrefix = PrivateLabelPrefix = "";
@@ -69,15 +72,12 @@ Z80MCAsmInfoELF::Z80MCAsmInfoELF(const Triple &T) {
6972
LGloblDirective = "\tprivate\t";
7073
SetDirective = "\tlabel\t";
7174
SetSeparator = " at ";
72-
HasFunctionAlignment = false;
7375
HasDotTypeDotSizeDirective = false;
7476
IdentDirective = "\tident\t";
7577
WeakDirective = "\tweak\t";
76-
UseIntegratedAssembler = false;
7778
UseLogicalShr = false;
7879
HasSingleParameterDotFile = false;
7980
SupportsDebugInformation = SupportsCFI = true;
80-
ExceptionsType = ExceptionHandling::SjLj;
8181
DwarfFileDirective = "\tfile\t";
8282
DwarfLocDirective = "\tloc\t";
8383
DwarfCFIDirectivePrefix = "\tcfi_";

0 commit comments

Comments
 (0)