瀏覽代碼

+ Add global_used callback procedure

git-svn-id: trunk@21778 -
pierre 13 年之前
父節點
當前提交
68d7e943c8
共有 1 個文件被更改,包括 14 次插入0 次删除
  1. 14 0
      compiler/aasmbase.pas

+ 14 - 0
compiler/aasmbase.pas

@@ -191,6 +191,15 @@ interface
 
 
     function ReplaceForbiddenAsmSymbolChars(const s: string): string;
     function ReplaceForbiddenAsmSymbolChars(const s: string): string;
 
 
+	{ dummy default noop callback }
+	procedure default_global_used; 
+  type
+	TGlobalUsedProcedure = procedure;
+	{ Procedure variable to allow for special handling of 
+	  the occurence of use of a global variable,
+	  used by PIC code generation to request GOT loading }
+  const
+    global_used : TGlobalUsedProcedure = @default_global_used;
 
 
 implementation
 implementation
 
 
@@ -420,6 +429,7 @@ implementation
         is_set:=false;
         is_set:=false;
         { write it always }
         { write it always }
         increfs;
         increfs;
+		global_used;
       end;
       end;
 
 
 
 
@@ -447,4 +457,8 @@ implementation
         increfs;
         increfs;
       end;
       end;
 
 
+	procedure default_global_used;
+	  begin
+	  end;
+
 end.
 end.