mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-22 01:49:19 +02:00
* fixed dynamic array constants for non-Darwin LLVM platforms
git-svn-id: trunk@40578 -
This commit is contained in:
parent
2330164ee2
commit
7cc7268635
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user