diff gen/dvalue.h @ 468:45a67b6f1310

Removed the 'needsstorage' thing from Dsymbol. Arguments are not always given storage when applicable. This is not longer treat specially in this regard. Code for accessing nested variables and contexts rewritten. Probably more. Fairly well tested.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Mon, 04 Aug 2008 02:59:34 +0200
parents 74101be2a553
children a34078905d01
line wrap: on
line diff
--- a/gen/dvalue.h	Sun Aug 03 16:59:28 2008 +0200
+++ b/gen/dvalue.h	Mon Aug 04 02:59:34 2008 +0200
@@ -27,7 +27,6 @@
 struct DNullValue;
 struct DVarValue;
 struct DFieldValue;
-struct DThisValue;
 struct DFuncValue;
 struct DSliceValue;
 struct DArrayLenValue;
@@ -49,7 +48,6 @@
     virtual DNullValue* isNull() { return NULL; }
     virtual DVarValue* isVar() { return NULL; }
     virtual DFieldValue* isField() { return NULL; }
-    virtual DThisValue* isThis() { return NULL; }
     virtual DSliceValue* isSlice() { return NULL; }
     virtual DFuncValue* isFunc() { return NULL; }
     virtual DArrayLenValue* isArrayLen() { return NULL; }
@@ -130,13 +128,6 @@
     virtual DFieldValue* isField() { return this; }
 };
 
-// this d-value
-struct DThisValue : DVarValue
-{
-    DThisValue(Type* t, VarDeclaration* vd, LLValue* llvmValue) : DVarValue(t, vd, llvmValue, true) {}
-    virtual DThisValue* isThis() { return this; }
-};
-
 // slice d-value
 struct DSliceValue : DValue
 {