瀏覽代碼

* synchronised with trunk till r40578

git-svn-id: branches/debug_eh@40579 -
Jonas Maebe 6 年之前
父節點
當前提交
24c49301e3
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      compiler/llvm/nllvmtcon.pas

+ 8 - 0
compiler/llvm/nllvmtcon.pas

@@ -117,6 +117,7 @@ interface
       function emit_placeholder(def: tdef): ttypedconstplaceholder; override;
       function emit_placeholder(def: tdef): ttypedconstplaceholder; override;
 
 
       class function get_string_symofs(typ: tstringtype; winlikewidestring: boolean): pint; override;
       class function get_string_symofs(typ: tstringtype; winlikewidestring: boolean): pint; override;
+      class function get_dynarray_symofs: pint; override;
 
 
       property appendingdef: boolean write fappendingdef;
       property appendingdef: boolean write fappendingdef;
     end;
     end;
@@ -851,6 +852,13 @@ implementation
     end;
     end;
 
 
 
 
+  class function tllvmtai_typedconstbuilder.get_dynarray_symofs: pint;
+    begin
+      { LLVM does not support labels in the middle of a declaration }
+      result:=get_dynarray_header_size;
+    end;
+
+
 begin
 begin
   ctai_typedconstbuilder:=tllvmtai_typedconstbuilder;
   ctai_typedconstbuilder:=tllvmtai_typedconstbuilder;
 end.
 end.