diff gen/elem.h @ 86:fd32135dca3e trunk

[svn r90] Major updates to the gen directory. Redesigned the 'elem' struct. Much more... !!! Lots of bugfixes. Added support for special foreach on strings. Added std.array, std.utf, std.ctype and std.uni to phobos. Changed all the .c files in the gen dir to .cpp (it *is* C++ after all)
author lindquist
date Sat, 03 Nov 2007 14:44:58 +0100
parents 339422268de1
children
line wrap: on
line diff
--- a/gen/elem.h	Fri Nov 02 06:32:32 2007 +0100
+++ b/gen/elem.h	Sat Nov 03 14:44:58 2007 +0100
@@ -1,10 +1,17 @@
 #ifndef LLVMDC_GEN_ELEM_H
 #define LLVMDC_GEN_ELEM_H
 
+#include "dvalue.h"
+typedef DValue elem;
+
+/*
+
 #include "root.h"
 #include "declaration.h"
 #include "aggregate.h"
 
+struct DValue;
+
 // represents a value. be it a constant literal, a variable etc.
 // maintains all the information for doing load/store appropriately
 struct elem : Object
@@ -22,7 +29,10 @@
     };
 
 public:
-    elem();
+    elem(Expression* e);
+    virtual ~elem();
+
+    Expression* exp;
 
     llvm::Value* mem;
     llvm::Value* val;
@@ -41,7 +51,11 @@
     llvm::Value* getValue();
     //llvm::Value* getMemory();
 
+    DValue* dvalue;
+
     bool isNull()   {return !(mem || val);}
 };
 
+*/
+
 #endif // LLVMDC_GEN_ELEM_H