* always use unified assembler syntax on Darwin (required by Xcode 7+)

git-svn-id: trunk@31805 -
This commit is contained in:
Jonas Maebe 2015-09-23 20:38:18 +00:00
parent c5f64a51da
commit 840c043c75

View File

@ -49,6 +49,7 @@ unit agarmgas;
TArmAppleGNUAssembler=class(TAppleGNUassembler) TArmAppleGNUAssembler=class(TAppleGNUassembler)
constructor create(info: pasminfo; smart: boolean); override; constructor create(info: pasminfo; smart: boolean); override;
procedure WriteExtraHeader; override;
end; end;
@ -142,6 +143,15 @@ unit agarmgas;
begin begin
inherited; inherited;
InstrWriter := TArmInstrWriter.create(self); InstrWriter := TArmInstrWriter.create(self);
TArmInstrWriter(InstrWriter).unified_syntax:=true;
end;
procedure TArmAppleGNUAssembler.WriteExtraHeader;
begin
inherited WriteExtraHeader;
if TArmInstrWriter(InstrWriter).unified_syntax then
writer.AsmWriteLn(#9'.syntax unified');
end; end;