Mercurial > projects > ldc
comparison dmd/aggregate.h @ 88:058d3925950e trunk
[svn r92] Fixed support for statically initialized unions. lots of bugfixes as cleanups too.
author | lindquist |
---|---|
date | Tue, 06 Nov 2007 10:03:14 +0100 |
parents | 714057ff2dbb |
children | ce7ed8f59b99 |
comparison
equal
deleted
inserted
replaced
87:25d4fcce53f4 | 88:058d3925950e |
---|---|
42 class Type; | 42 class Type; |
43 class Value; | 43 class Value; |
44 class Constant; | 44 class Constant; |
45 class ConstantStruct; | 45 class ConstantStruct; |
46 } | 46 } |
47 | |
48 struct DUnion; | |
47 | 49 |
48 struct AggregateDeclaration : ScopeDsymbol | 50 struct AggregateDeclaration : ScopeDsymbol |
49 { | 51 { |
50 Type *type; | 52 Type *type; |
51 unsigned storage_class; | 53 unsigned storage_class; |
102 llvm::Type* llvmType; | 104 llvm::Type* llvmType; |
103 llvm::Constant* llvmVtbl; | 105 llvm::Constant* llvmVtbl; |
104 llvm::ConstantStruct* llvmConstVtbl; | 106 llvm::ConstantStruct* llvmConstVtbl; |
105 llvm::Constant* llvmInitZ; | 107 llvm::Constant* llvmInitZ; |
106 bool llvmHasUnions; | 108 bool llvmHasUnions; |
109 DUnion* llvmUnion; | |
107 | 110 |
108 AggregateDeclaration *isAggregateDeclaration() { return this; } | 111 AggregateDeclaration *isAggregateDeclaration() { return this; } |
109 }; | 112 }; |
110 | 113 |
111 struct AnonymousAggregateDeclaration : AggregateDeclaration | 114 struct AnonymousAggregateDeclaration : AggregateDeclaration |