* support llvm aliases for defs other than procdef

git-svn-id: trunk@31052 -
This commit is contained in:
Jonas Maebe 2015-06-13 22:48:14 +00:00
parent 4eea652576
commit 54dd25b448

View File

@ -949,7 +949,10 @@ implementation
asmwrite(copy(s, length('llv_')+1, 255));
asmwrite(' ');
end;
asmwrite(llvmencodeproctype(tabstractprocdef(taillvmalias(hp).def), '', lpd_alias));
if taillvmalias(hp).def.typ=procdef then
asmwrite(llvmencodeproctype(tabstractprocdef(taillvmalias(hp).def), '', lpd_alias))
else
asmwrite(llvmencodetypename(taillvmalias(hp).def));
asmwrite('* ');
asmwriteln(LlvmAsmSymName(taillvmalias(hp).oldsym));
end;