Skip to content

Commit 14382e2

Browse files
committed
refactor expression.h: remove fields unused by backend
1 parent b0bc2f4 commit 14382e2

1 file changed

Lines changed: 1 addition & 23 deletions

File tree

src/expression.h

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -501,9 +501,6 @@ class ScopeExp : public Expression
501501
class TemplateExp : public Expression
502502
{
503503
public:
504-
TemplateDeclaration *td;
505-
FuncDeclaration *fd;
506-
507504
bool isLvalue();
508505
Expression *toLvalue(Scope *sc, Expression *e);
509506
bool checkType();
@@ -592,8 +589,6 @@ class VarExp : public SymbolExp
592589
class OverExp : public Expression
593590
{
594591
public:
595-
OverloadSet *vars;
596-
597592
bool isLvalue();
598593
Expression *toLvalue(Scope *sc, Expression *e);
599594
void accept(Visitor *v) { v->visit(this); }
@@ -649,9 +644,6 @@ class TypeidExp : public Expression
649644
class TraitsExp : public Expression
650645
{
651646
public:
652-
Identifier *ident;
653-
Objects *args;
654-
655647
Expression *syntaxCopy();
656648
Expression *semantic(Scope *sc);
657649
void accept(Visitor *v) { v->visit(this); }
@@ -668,16 +660,6 @@ class HaltExp : public Expression
668660
class IsExp : public Expression
669661
{
670662
public:
671-
/* is(targ id tok tspec)
672-
* is(targ id == tok2)
673-
*/
674-
Type *targ;
675-
Identifier *id; // can be NULL
676-
TOK tok; // ':' or '=='
677-
Type *tspec; // can be NULL
678-
TOK tok2; // 'struct', 'union', etc.
679-
TemplateParameters *parameters;
680-
681663
Expression *syntaxCopy();
682664
Expression *semantic(Scope *sc);
683665
void accept(Visitor *v) { v->visit(this); }
@@ -768,8 +750,6 @@ class AssertExp : public UnaExp
768750
class DotIdExp : public UnaExp
769751
{
770752
public:
771-
Identifier *ident;
772-
773753
static DotIdExp *create(Loc loc, Expression *e, Identifier *ident);
774754
Expression *semantic(Scope *sc);
775755
Expression *semanticX(Scope *sc);
@@ -780,8 +760,6 @@ class DotIdExp : public UnaExp
780760
class DotTemplateExp : public UnaExp
781761
{
782762
public:
783-
TemplateDeclaration *td;
784-
785763
Expression *semantic(Scope *sc);
786764
void accept(Visitor *v) { v->visit(this); }
787765
};
@@ -1457,7 +1435,7 @@ struct UnionExp
14571435
char sliceexp [sizeof(SliceExp)];
14581436

14591437
// Ensure that the union is suitably aligned.
1460-
real_t for_alignment_only;
1438+
longdouble for_alignment_only;
14611439
} u;
14621440
};
14631441

0 commit comments

Comments
 (0)