@@ -36,14 +36,17 @@ Z80MCAsmInfoELF::Z80MCAsmInfoELF(const Triple &T) {
36
36
CodePointerSize = CalleeSaveStackSlotSize = Is16Bit ? 2 : 3 ;
37
37
MaxInstLength = 6 ;
38
38
39
+ // Common to both GAS and fasmg
39
40
CommentString = " ;" ;
40
- Code16Directive = " .assume\t adl = 0" ;
41
- Code24Directive = " .assume\t adl = 1" ;
42
41
Code32Directive = Code64Directive = nullptr ;
43
42
UseIntegratedAssembler = false ;
44
43
AssemblerDialect = !Is16Bit;
44
+ HasFunctionAlignment = false ;
45
+ ExceptionsType = ExceptionHandling::SjLj;
45
46
46
47
if (!Z80GasStyle) {
48
+ Code16Directive = " assume\t adl = 0" ;
49
+ Code24Directive = " assume\t adl = 1" ;
47
50
DollarIsPC = true ;
48
51
SeparatorString = nullptr ;
49
52
PrivateGlobalPrefix = PrivateLabelPrefix = " " ;
@@ -69,15 +72,12 @@ Z80MCAsmInfoELF::Z80MCAsmInfoELF(const Triple &T) {
69
72
LGloblDirective = " \t private\t " ;
70
73
SetDirective = " \t label\t " ;
71
74
SetSeparator = " at " ;
72
- HasFunctionAlignment = false ;
73
75
HasDotTypeDotSizeDirective = false ;
74
76
IdentDirective = " \t ident\t " ;
75
77
WeakDirective = " \t weak\t " ;
76
- UseIntegratedAssembler = false ;
77
78
UseLogicalShr = false ;
78
79
HasSingleParameterDotFile = false ;
79
80
SupportsDebugInformation = SupportsCFI = true ;
80
- ExceptionsType = ExceptionHandling::SjLj;
81
81
DwarfFileDirective = " \t file\t " ;
82
82
DwarfLocDirective = " \t loc\t " ;
83
83
DwarfCFIDirectivePrefix = " \t cfi_" ;
0 commit comments