mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-17 17:29:02 +02:00
Apply StaticStructInit changes from [913] to dmd2/
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user