summaryrefslogtreecommitdiff
path: root/compiler/llvm/nllvmtcon.pas
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/llvm/nllvmtcon.pas')
-rw-r--r--compiler/llvm/nllvmtcon.pas7
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler/llvm/nllvmtcon.pas b/compiler/llvm/nllvmtcon.pas
index eb1fd0a3d1..8dcef8398b 100644
--- a/compiler/llvm/nllvmtcon.pas
+++ b/compiler/llvm/nllvmtcon.pas
@@ -131,7 +131,8 @@ implementation
aasmdata,
procinfo,
cpubase,cpuinfo,llvmbase,
- symtable,llvmdef,defutil,defcmp;
+ symtable,llvmdef,defutil,defcmp,
+ ngenutil;
{ tllvmaggregateinformation }
@@ -213,9 +214,9 @@ implementation
why it's done like this, but this is how Clang does it) }
if (target_info.system in systems_darwin) and
(section in [low(TObjCAsmSectionType)..high(TObjCAsmSectionType)]) then
- current_module.llvmcompilerusedsyms.add(decl)
+ cnodeutils.RegisterUsedAsmSym(sym,def,false)
else
- current_module.llvmusedsyms.add(decl);
+ cnodeutils.RegisterUsedAsmSym(sym,def,true);
newasmlist.concat(decl);
fasmlist:=newasmlist;
end;