diff gen/irstate.h @ 6:35d93ce68cf4 trunk

[svn r10] Updated for LLVM rev. 20070913 Applied fixes from wilsonk on the forum Some tweaks to work with gc 7.0 Fixed aggregate members of aggregates Fixed cyclic/recursive class declarations Other minor tweaks
author lindquist
date Wed, 26 Sep 2007 19:05:18 +0200
parents c53b6e3fe49a
children 37a4fdab33fc
line wrap: on
line diff
--- a/gen/irstate.h	Wed Sep 05 07:16:31 2007 +0200
+++ b/gen/irstate.h	Wed Sep 26 19:05:18 2007 +0200
@@ -36,7 +36,7 @@
     IRScope(llvm::BasicBlock* b, llvm::BasicBlock* e);
 };
 
-// represents a struct
+// represents a struct or class
 struct IRStruct : Object
 {
     typedef std::vector<const llvm::Type*> TypeVector;
@@ -45,21 +45,15 @@
 
 public:
     IRStruct();
-    IRStruct(TypeStruct*);
+    IRStruct(Type*);
     virtual ~IRStruct();
 
-    TypeStruct* type;
+    Type* type;
     TypeVector fields;
     ConstantVector inits;
     llvm::PATypeHolder recty;
 };
 
-// represents a clas
-struct IRClass : Object
-{
-    // TODO
-};
-
 // represents the module
 struct IRState : Object
 {