Skip to content

Commit

Permalink
Merge pull request #3110 from yebblies/inlinecost
Browse files Browse the repository at this point in the history
[refactor] Move inlineCost and inlineCost3 to a visitor class
  • Loading branch information
yebblies committed Jan 19, 2014
2 parents fd4f863 + ddd29c3 commit 826f316
Show file tree
Hide file tree
Showing 6 changed files with 612 additions and 280 deletions.
3 changes: 3 additions & 0 deletions src/ctfe.h
Expand Up @@ -55,6 +55,7 @@ class ClassReferenceExp : public Expression
dt_t **toInstanceDt(dt_t **pdt);
dt_t **toDt2(dt_t **pdt, ClassDeclaration *cd, Dts *dts);
elem *toElem(IRState *irs);
void accept(Visitor *v) { v->visit(this); }
};

/// Return index of the field, or -1 if not found
Expand All @@ -72,6 +73,7 @@ class VoidInitExp : public Expression
VoidInitExp(VarDeclaration *var, Type *type);
char *toChars();
Expression *interpret(InterState *istate, CtfeGoal goal = ctfeNeedRvalue);
void accept(Visitor *v) { v->visit(this); }
};


Expand All @@ -87,6 +89,7 @@ class ThrownExceptionExp : public Expression
char *toChars();
/// Generate an error message when this exception is not caught
void generateUncaughtError();
void accept(Visitor *v) { v->visit(this); }
};


Expand Down

0 comments on commit 826f316

Please sign in to comment.