diff dmd2/declaration.h @ 921:75c53f8f67a4

Apply StaticStructInit changes from [913] to dmd2/
author Christian Kamm <kamm incasoftware de>
date Tue, 03 Feb 2009 18:00:17 +0100
parents 340acf1535d0
children 0749c0757a43
line wrap: on
line diff
--- a/dmd2/declaration.h	Tue Feb 03 08:54:57 2009 +0100
+++ b/dmd2/declaration.h	Tue Feb 03 18:00:17 2009 +0100
@@ -284,19 +284,18 @@
 
 /**************************************************************/
 
-// This is a shell around a back end symbol
+// LDC uses this to denote static struct initializers
 
-struct SymbolDeclaration : Declaration
+struct StaticStructInitDeclaration : Declaration
 {
-    Symbol *sym;
     StructDeclaration *dsym;
 
-    SymbolDeclaration(Loc loc, Symbol *s, StructDeclaration *dsym);
+    StaticStructInitDeclaration(Loc loc, StructDeclaration *dsym);
 
     Symbol *toSymbol();
 
     // Eliminate need for dynamic_cast
-    SymbolDeclaration *isSymbolDeclaration() { return (SymbolDeclaration *)this; }
+    StaticStructInitDeclaration *isStaticStructInitDeclaration() { return (StaticStructInitDeclaration *)this; }
 };
 
 struct ClassInfoDeclaration : VarDeclaration