@@ -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\t adl = 0" ;
41- Code24Directive = " .assume\t adl = 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\t adl = 0" ;
49+ Code24Directive = " assume\t adl = 1" ;
4750 DollarIsPC = true ;
4851 SeparatorString = nullptr ;
4952 PrivateGlobalPrefix = PrivateLabelPrefix = " " ;
@@ -69,15 +72,12 @@ Z80MCAsmInfoELF::Z80MCAsmInfoELF(const Triple &T) {
6972 LGloblDirective = " \t private\t " ;
7073 SetDirective = " \t label\t " ;
7174 SetSeparator = " at " ;
72- HasFunctionAlignment = false ;
7375 HasDotTypeDotSizeDirective = false ;
7476 IdentDirective = " \t ident\t " ;
7577 WeakDirective = " \t weak\t " ;
76- UseIntegratedAssembler = false ;
7778 UseLogicalShr = false ;
7879 HasSingleParameterDotFile = false ;
7980 SupportsDebugInformation = SupportsCFI = true ;
80- ExceptionsType = ExceptionHandling::SjLj;
8181 DwarfFileDirective = " \t file\t " ;
8282 DwarfLocDirective = " \t loc\t " ;
8383 DwarfCFIDirectivePrefix = " \t cfi_" ;
0 commit comments