Browse Source

* fix compilation with -dextdebug

git-svn-id: trunk@21716 -
florian 13 năm trước cách đây
mục cha
commit
3733a000a4

+ 2 - 2
compiler/x86/agx86int.pas

@@ -902,7 +902,7 @@ implementation
       hal : tasmlisttype;
       hal : tasmlisttype;
     begin
     begin
 {$ifdef EXTDEBUG}
 {$ifdef EXTDEBUG}
-      if assigned(current_module.mainsource) then
+      if current_module.mainsource<>'' then
        comment(v_info,'Start writing intel-styled assembler output for '+current_module.mainsource);
        comment(v_info,'Start writing intel-styled assembler output for '+current_module.mainsource);
 {$endif}
 {$endif}
       if target_asm.id<>as_x86_64_masm then
       if target_asm.id<>as_x86_64_masm then
@@ -943,7 +943,7 @@ implementation
       AsmLn;
       AsmLn;
 
 
 {$ifdef EXTDEBUG}
 {$ifdef EXTDEBUG}
-      if assigned(current_module.mainsource) then
+      if current_module.mainsource<>'' then
        comment(v_info,'Done writing intel-styled assembler output for '+current_module.mainsource);
        comment(v_info,'Done writing intel-styled assembler output for '+current_module.mainsource);
 {$endif EXTDEBUG}
 {$endif EXTDEBUG}
    end;
    end;

+ 2 - 2
compiler/x86/agx86nsm.pas

@@ -1015,7 +1015,7 @@ interface
       hal : tasmlisttype;
       hal : tasmlisttype;
     begin
     begin
 {$ifdef EXTDEBUG}
 {$ifdef EXTDEBUG}
-      if assigned(current_module.mainsource) then
+      if current_module.mainsource<>'' then
        comment(v_info,'Start writing nasm-styled assembler output for '+current_module.mainsource);
        comment(v_info,'Start writing nasm-styled assembler output for '+current_module.mainsource);
 {$endif}
 {$endif}
       AsmWriteLn('BITS 32');
       AsmWriteLn('BITS 32');
@@ -1037,7 +1037,7 @@ interface
           FreeExternChainList;
           FreeExternChainList;
         end;
         end;
 {$ifdef EXTDEBUG}
 {$ifdef EXTDEBUG}
-      if assigned(current_module.mainsource) then
+      if current_module.mainsource<>'' then
        comment(v_info,'Done writing nasm-styled assembler output for '+current_module.mainsource);
        comment(v_info,'Done writing nasm-styled assembler output for '+current_module.mainsource);
 {$endif EXTDEBUG}
 {$endif EXTDEBUG}
    end;
    end;