mirror of
https://github.com/cc65/cc65.git
synced 2024-12-25 17:29:50 +00:00
For now use the void type for all debug symbols to avoid errors in the
backends. git-svn-id: svn://svn.cc65.org/cc65/trunk@5287 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
2438497e9f
commit
b4afe56ef1
@ -355,7 +355,7 @@ static void F_RestoreRegVars (Function* F)
|
||||
if (!F_HasVoidReturn (F)) {
|
||||
g_restore (CF_CHAR | CF_FORCECHAR);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -368,7 +368,7 @@ static void EmitDebugInfo (void)
|
||||
const SymTable* Tab = Desc->SymTab;
|
||||
|
||||
/* Output info for the function itself */
|
||||
AddTextLine ("\t.dbg\tfunc, \"%s\", \"\", %s, \"%s\"",
|
||||
AddTextLine ("\t.dbg\tfunc, \"%s\", \"00\", %s, \"%s\"",
|
||||
Sym->Name,
|
||||
(Sym->Flags & SC_EXTERN)? "extern" : "static",
|
||||
Sym->AsmName);
|
||||
@ -378,14 +378,14 @@ static void EmitDebugInfo (void)
|
||||
while (Sym) {
|
||||
if ((Sym->Flags & (SC_CONST|SC_TYPE)) == 0) {
|
||||
if (Sym->Flags & SC_AUTO) {
|
||||
AddTextLine ("\t.dbg\tsym, \"%s\", \"\", auto, %d",
|
||||
AddTextLine ("\t.dbg\tsym, \"%s\", \"00\", auto, %d",
|
||||
Sym->Name, Sym->V.Offs);
|
||||
} else if (Sym->Flags & SC_REGISTER) {
|
||||
AddTextLine ("\t.dbg\tsym, \"%s\", \"\", register, \"regbank\", %d",
|
||||
AddTextLine ("\t.dbg\tsym, \"%s\", \"00\", register, \"regbank\", %d",
|
||||
Sym->Name, Sym->V.R.RegOffs);
|
||||
|
||||
} else {
|
||||
AddTextLine ("\t.dbg\tsym, \"%s\", \"\", %s, \"%s\"",
|
||||
AddTextLine ("\t.dbg\tsym, \"%s\", \"00\", %s, \"%s\"",
|
||||
Sym->Name,
|
||||
(Sym->Flags & SC_EXTERN)? "extern" : "static",
|
||||
Sym->AsmName);
|
||||
|
Loading…
Reference in New Issue
Block a user