Try to avoid problems with generic types for stabs/stabx

git-svn-id: trunk@27635 -
This commit is contained in:
pierre 2014-04-22 21:28:45 +00:00
parent 9a40ff19a1
commit 356ea656e4
2 changed files with 7 additions and 1 deletions

View File

@ -527,7 +527,11 @@ implementation
begin
sym:=tsym(st.SymList[i]);
if (sym.visibility<>vis_hidden) and
(not sym.isdbgwritten) then
(not sym.isdbgwritten) and
{ avoid all generic symbols }
not (sp_generic_dummy in sym.symoptions) and
not ((sym.typ=typesym) and assigned(ttypesym(sym).typedef) and
(df_generic in ttypesym(sym).typedef.defoptions)) then
appendsym(list,sym);
end;
case st.symtabletype of

View File

@ -187,6 +187,8 @@ implementation
result := Sym.Name
else
result := Sym.RealName;
if (Sym.typ=typesym) and (ttypesym(Sym).Fprettyname<>'') then
result:=ttypesym(Sym).FPrettyName;
if target_asm.dollarsign<>'$' then
result:=ReplaceForbiddenAsmSymbolChars(result);
end;