Add a goto indirect jump from pointer
This commit is contained in:
committed by
greg-king5
parent
37f00e6644
commit
c2220f3c30
@@ -58,6 +58,7 @@
|
|||||||
|
|
||||||
struct Segments;
|
struct Segments;
|
||||||
struct LiteralPool;
|
struct LiteralPool;
|
||||||
|
struct CodeEntry;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -138,6 +139,7 @@ struct SymEntry {
|
|||||||
struct {
|
struct {
|
||||||
unsigned Label;
|
unsigned Label;
|
||||||
Collection *DefsOrRefs;
|
Collection *DefsOrRefs;
|
||||||
|
struct CodeEntry *IndJumpFrom;
|
||||||
} L;
|
} L;
|
||||||
|
|
||||||
/* Value of SP adjustment needed after forward 'goto' */
|
/* Value of SP adjustment needed after forward 'goto' */
|
||||||
|
|||||||
@@ -777,6 +777,7 @@ SymEntry* AddLabelSym (const char* Name, unsigned Flags)
|
|||||||
|
|
||||||
/* Set a new label number */
|
/* Set a new label number */
|
||||||
Entry->V.L.Label = GetLocalLabel ();
|
Entry->V.L.Label = GetLocalLabel ();
|
||||||
|
Entry->V.L.IndJumpFrom = NULL;
|
||||||
|
|
||||||
/* Create Collection for label definition and references */
|
/* Create Collection for label definition and references */
|
||||||
Entry->V.L.DefsOrRefs = NewCollection ();
|
Entry->V.L.DefsOrRefs = NewCollection ();
|
||||||
|
|||||||
Reference in New Issue
Block a user