+ added a hook to insert object-global information into the asmlists (will

be used to insert type definitions for llvm)

git-svn-id: trunk@30674 -
This commit is contained in:
Jonas Maebe 2015-04-19 21:37:43 +00:00
parent 2bb4a729c0
commit 1941e64488
2 changed files with 15 additions and 0 deletions

View File

@ -97,6 +97,11 @@ interface
class procedure InsertMemorySizes; virtual;
{ called right before an object is assembled, can be used to insert
global information into the assembler list (used by LLVM to insert type
info) }
class procedure InsertObjectInfo; virtual;
strict protected
class procedure add_main_procdef_paras(pd: tdef); virtual;
end;
@ -999,6 +1004,12 @@ implementation
end;
class procedure tnodeutils.InsertObjectInfo;
begin
{ don't do anything by default }
end;
class procedure tnodeutils.add_main_procdef_paras(pd: tdef);
begin
{ no parameters by default }

View File

@ -92,6 +92,10 @@ implementation
KeepShared.Free;
end;
{ allow a target-specific pass over all assembler code (used by LLVM
to insert type definitions }
cnodeutils.InsertObjectInfo;
{ Start and end module debuginfo, at least required for stabs
to insert n_sourcefile lines }
if (cs_debuginfo in current_settings.moduleswitches) or