Mark imports with a special type tag instead of relying on the export pointer

being valid, because the export may not be available if the module was
compiled without debug information.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5201 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2011-08-18 10:04:01 +00:00
parent 50adbf61f1
commit e53f4fa163
2 changed files with 14 additions and 8 deletions

View File

@@ -3605,6 +3605,7 @@ static void ParseSym (InputData* D)
case TOK_TYPE:
switch (D->Tok) {
case TOK_EQUATE: Type = CC65_SYM_EQUATE; break;
case TOK_IMPORT: Type = CC65_SYM_IMPORT; break;
case TOK_LABEL: Type = CC65_SYM_LABEL; break;
default:
ParseError (D, CC65_ERROR,
@@ -5621,8 +5622,8 @@ const cc65_symbolinfo* cc65_symbol_inrange (cc65_dbginfo Handle, cc65_addr Start
break;
}
/* Ignore non-labels and imports */
if (Item->Type != CC65_SYM_LABEL || Item->Exp.Info != 0) {
/* Ignore non-labels (this will also ignore imports) */
if (Item->Type != CC65_SYM_LABEL) {
continue;
}