Add missing overrides for toConstExp to dmd2/expression.h. Fixes #156.

This commit is contained in:
Christian Kamm
2008-12-20 09:15:31 +01:00
parent 61a5a08135
commit 9d01659718

View File

@@ -1080,6 +1080,9 @@ struct SliceExp : UnaExp
int inlineCost(InlineCostState *ics);
Expression *doInline(InlineDoState *ids);
Expression *inlineScan(InlineScanState *iss);
// LDC
virtual llvm::Constant *toConstElem(IRState *irs);
};
struct ArrayLengthExp : UnaExp
@@ -1154,6 +1157,9 @@ struct IndexExp : BinExp
void scanForNestedRef(Scope *sc);
elem *toElem(IRState *irs);
// LDC
virtual llvm::Constant *toConstElem(IRState *irs);
};
/* For both i++ and i--
@@ -1565,6 +1571,7 @@ struct GEPExp : UnaExp
Expression *toLvalue(Scope *sc, Expression *e);
elem *toElem(IRState *irs);
llvm::Constant *toConstElem(IRState *irs);
};
#endif