- Don't output 'begin/end asmlist xxx' comments for empty asmlists.

git-svn-id: trunk@26744 -
This commit is contained in:
sergei 2014-02-09 21:29:20 +00:00
parent 37b34edbc6
commit 74089039e7

View File

@ -1668,9 +1668,12 @@ implementation
for hal:=low(TasmlistType) to high(TasmlistType) do for hal:=low(TasmlistType) to high(TasmlistType) do
begin begin
AsmWriteLn(target_asm.comment+'Begin asmlist '+AsmlistTypeStr[hal]); if not (current_asmdata.asmlists[hal].empty) then
writetree(current_asmdata.asmlists[hal]); begin
AsmWriteLn(target_asm.comment+'End asmlist '+AsmlistTypeStr[hal]); AsmWriteLn(target_asm.comment+'Begin asmlist '+AsmlistTypeStr[hal]);
writetree(current_asmdata.asmlists[hal]);
AsmWriteLn(target_asm.comment+'End asmlist '+AsmlistTypeStr[hal]);
end;
end; end;
{ add weak symbol markers } { add weak symbol markers }