Entry->V.R.SaveOffs = StackPtr;
} else if ((Flags & SC_EXTERN) == SC_EXTERN) {
Entry->V.Label = Offs;
+ SymSetAsmName (Entry);
} else if ((Flags & SC_STATIC) == SC_STATIC) {
/* Generate the assembler name from the label number */
Entry->V.Label = Offs;
} else {
- unsigned Len;
-
/* Create a new entry */
Entry = NewSymEntry (Name, Flags);
}
/* Add the assembler name of the symbol */
- Len = strlen (Name);
- Entry->AsmName = xmalloc (Len + 2);
- Entry->AsmName[0] = '_';
- memcpy (Entry->AsmName+1, Name, Len+1);
+ SymSetAsmName (Entry);
/* Add the entry to the symbol table */
AddSymEntry (Tab, Entry);