Apply StaticStructInit changes from [913] to dmd2/

This commit is contained in:
Christian Kamm
2009-02-03 18:00:17 +01:00
parent dc5944df99
commit 8726eefefa
5 changed files with 24 additions and 20 deletions

View File

@@ -284,19 +284,18 @@ struct VarDeclaration : Declaration
/**************************************************************/
// 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