mirror of
https://github.com/dlang/dmd.git
synced 2025-04-27 13:40:11 +03:00
Merge pull request #11573 from NilsLankila/symexp-varexp-size
optimize instance size of SymbolExp and VarExp
This commit is contained in:
commit
491c044710
2 changed files with 2 additions and 2 deletions
|
@ -3458,8 +3458,8 @@ extern (C++) final class NewAnonClassExp : Expression
|
||||||
extern (C++) class SymbolExp : Expression
|
extern (C++) class SymbolExp : Expression
|
||||||
{
|
{
|
||||||
Declaration var;
|
Declaration var;
|
||||||
bool hasOverloads;
|
|
||||||
Dsymbol originalScope; // original scope before inlining
|
Dsymbol originalScope; // original scope before inlining
|
||||||
|
bool hasOverloads;
|
||||||
|
|
||||||
extern (D) this(const ref Loc loc, TOK op, int size, Declaration var, bool hasOverloads)
|
extern (D) this(const ref Loc loc, TOK op, int size, Declaration var, bool hasOverloads)
|
||||||
{
|
{
|
||||||
|
|
|
@ -540,8 +540,8 @@ class SymbolExp : public Expression
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Declaration *var;
|
Declaration *var;
|
||||||
bool hasOverloads;
|
|
||||||
Dsymbol *originalScope;
|
Dsymbol *originalScope;
|
||||||
|
bool hasOverloads;
|
||||||
|
|
||||||
void accept(Visitor *v) { v->visit(this); }
|
void accept(Visitor *v) { v->visit(this); }
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue