changeset 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 2025c9a24efd
children cd87b3f15ccf
files dmd2/expression.h
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
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