Skip to content

Commit

Permalink
Revert "simplify union evc (dlang#16502)"
Browse files Browse the repository at this point in the history
This reverts commit 35bcd18.
  • Loading branch information
RazvanN7 authored and thewilsonator committed May 23, 2024
1 parent 35bcd18 commit 0769c83
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions compiler/src/dmd/backend/code.d
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ nothrow:
alias segidx_t = int; // index into SegData[]

/**********************************
* Variant for operand of code struct
* Code data type
*/

struct _Declaration;
Expand All @@ -49,7 +49,7 @@ union evc
targ_size_t Vsize_t;
struct
{
targ_size_t Vpointer; /// offset from start of segment
targ_size_t Vpointer;
int Vseg; /// segment the pointer is in
}
Srcpos Vsrcpos; /// source position for OPlinnum
Expand All @@ -60,12 +60,19 @@ union evc
struct
{
targ_size_t Voffset; /// offset from symbol
union
{
Symbol* Vsym; /// pointer to symbol table (FLfunc,FLextern)
_Declaration* Vdsym; /// pointer to D Declaration
_LabelDsymbol* Vlsym; /// pointer to D LabelDSymbol
}
Symbol *Vsym; /// pointer to symbol table (FLfunc,FLextern)
}

struct
{
targ_size_t Vdoffset; /// offset from symbol
_Declaration *Vdsym; /// pointer to D symbol table
}

struct
{
targ_size_t Vloffset; /// offset from symbol
_LabelDsymbol *Vlsym; /// pointer to D Label
}

struct
Expand Down

0 comments on commit 0769c83

Please sign in to comment.