diff dmd/declaration.c @ 100:5071469303d4 trunk

[svn r104] TONS OF FIXES. Split up declaration, constant initializer gen and definition for globals, structs, classes and functions. Improved ClassInfo support (not complete), not in vtable yet. Fixed a bunch of forward reference problems. Much more. Major commit! :)
author lindquist
date Fri, 16 Nov 2007 08:21:47 +0100
parents 70d6113eeb8c
children a7dfa0ed966c
line wrap: on
line diff
--- a/dmd/declaration.c	Thu Nov 15 00:24:44 2007 +0100
+++ b/dmd/declaration.c	Fri Nov 16 08:21:47 2007 +0100
@@ -32,7 +32,6 @@
     storage_class = STCundefined;
     protection = PROTundefined;
     linkage = LINKdefault;
-    llvmTouched = false;
 }
 
 void Declaration::semantic(Scope *sc)
@@ -553,6 +552,8 @@
     llvmFieldIndex = -1;
     llvmFieldIndexOffset = 0;
     llvmNeedsStorage = false;
+    llvmConstInit = NULL;
+    llvmIRGlobal = NULL;
 }
 
 Dsymbol *VarDeclaration::syntaxCopy(Dsymbol *s)