* fixed dynamic array constants for non-Darwin LLVM platforms

git-svn-id: trunk@40578 -
This commit is contained in:
Jonas Maebe 2018-12-16 20:59:58 +00:00
parent 2330164ee2
commit 7cc7268635

View File

@ -117,6 +117,7 @@ interface
function emit_placeholder(def: tdef): ttypedconstplaceholder; override;
class function get_string_symofs(typ: tstringtype; winlikewidestring: boolean): pint; override;
class function get_dynarray_symofs: pint; override;
property appendingdef: boolean write fappendingdef;
end;
@ -850,6 +851,13 @@ implementation
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
ctai_typedconstbuilder:=tllvmtai_typedconstbuilder;
end.