* fixed position of "weak" linkage flag

git-svn-id: trunk@32915 -
This commit is contained in:
Jonas Maebe 2016-01-10 17:22:14 +00:00
parent 90071e04c4
commit e3f8f8c974

View File

@ -977,6 +977,8 @@ implementation
else
begin
writer.AsmWrite('define');
if ldf_weak in taillvmdecl(hp).flags then
writer.AsmWrite(' weak');
WriteLinkageVibilityFlags(taillvmdecl(hp).namesym.bind);
writer.AsmWrite(llvmencodeproctype(tprocdef(taillvmdecl(hp).def), '', lpd_def));
WriteFunctionFlags(tprocdef(taillvmdecl(hp).def));
@ -987,10 +989,10 @@ implementation
begin
writer.AsmWrite(LlvmAsmSymName(taillvmdecl(hp).namesym));
writer.AsmWrite(' =');
if ldf_weak in taillvmdecl(hp).flags then
writer.AsmWrite(' weak');
WriteLinkageVibilityFlags(taillvmdecl(hp).namesym.bind);
writer.AsmWrite(' ');
if ldf_weak in taillvmdecl(hp).flags then
writer.AsmWrite('weak ');
if (ldf_tls in taillvmdecl(hp).flags) then
writer.AsmWrite('thread_local ');
if ldf_unnamed_addr in taillvmdecl(hp).flags then