mirror of
https://github.com/cc65/cc65.git
synced 2025-01-10 03:30:05 +00:00
Merge pull request #257 from greg-king5/actor-lineinfo
Make ca65's CONDES-type pseudo-instructions save line numbers correctly.
This commit is contained in:
commit
2f61c5433e
@ -570,8 +570,8 @@ void SymConDes (SymEntry* S, unsigned char AddrSize, unsigned Type, unsigned Pri
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If the symbol was already declared as a condes, check if the new
|
/* If the symbol already was declared as a condes of this type,
|
||||||
** priority value is the same as the old one.
|
** check if the new priority value is the same as the old one.
|
||||||
*/
|
*/
|
||||||
if (S->ConDesPrio[Type] != CD_PRIO_NONE) {
|
if (S->ConDesPrio[Type] != CD_PRIO_NONE) {
|
||||||
if (S->ConDesPrio[Type] != Prio) {
|
if (S->ConDesPrio[Type] != Prio) {
|
||||||
@ -583,10 +583,8 @@ void SymConDes (SymEntry* S, unsigned char AddrSize, unsigned Type, unsigned Pri
|
|||||||
/* Set the symbol data */
|
/* Set the symbol data */
|
||||||
S->Flags |= (SF_EXPORT | SF_REFERENCED);
|
S->Flags |= (SF_EXPORT | SF_REFERENCED);
|
||||||
|
|
||||||
/* In case we have no line info for the definition, record it now */
|
/* Remember the line info for this reference */
|
||||||
if (CollCount (&S->DefLines) == 0) {
|
CollAppend (&S->RefLines, GetAsmLineInfo ());
|
||||||
GetFullLineInfo (&S->DefLines);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user