Mercurial > projects > ldc
diff dmd2/expression.h @ 865:5e5873d847f6
Add missing overrides for toConstExp to dmd2/expression.h. Fixes #156.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 20 Dec 2008 09:15:31 +0100 |
parents | 340acf1535d0 |
children | 638d16625da2 |
line wrap: on
line diff
--- a/dmd2/expression.h Sat Dec 20 09:13:44 2008 +0100 +++ b/dmd2/expression.h Sat Dec 20 09:15:31 2008 +0100 @@ -1080,6 +1080,9 @@ 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 @@ void scanForNestedRef(Scope *sc); elem *toElem(IRState *irs); + + // LDC + virtual llvm::Constant *toConstElem(IRState *irs); }; /* For both i++ and i-- @@ -1565,6 +1571,7 @@ Expression *toLvalue(Scope *sc, Expression *e); elem *toElem(IRState *irs); + llvm::Constant *toConstElem(IRState *irs); }; #endif