Mercurial > projects > ldc
comparison dmd2/aggregate.h @ 797:340acf1535d0
Removed KDevelop3 project files, CMake can generate them just fine!
Fixed function literals in static initializers.
Changed alignment of delegates from 2*PTRSIZE to just PTRSIZE.
Changed errors to go to stderr instead of stdout.
Fairly major rewriting of struct/union/class handling, STILL A BIT BUGGY !!!
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Sat, 29 Nov 2008 21:25:43 +0100 |
parents | f04dde6e882c |
children | 638d16625da2 |
comparison
equal
deleted
inserted
replaced
796:6e7a4c3b64d2 | 797:340acf1535d0 |
---|---|
43 class Value; | 43 class Value; |
44 class Constant; | 44 class Constant; |
45 class ConstantStruct; | 45 class ConstantStruct; |
46 class GlobalVariable; | 46 class GlobalVariable; |
47 } | 47 } |
48 struct DUnion; | |
49 | 48 |
50 struct AggregateDeclaration : ScopeDsymbol | 49 struct AggregateDeclaration : ScopeDsymbol |
51 { | 50 { |
52 Type *type; | 51 Type *type; |
53 unsigned storage_class; | 52 unsigned storage_class; |
262 void toDt(dt_t **pdt); | 261 void toDt(dt_t **pdt); |
263 void toDt2(dt_t **pdt, ClassDeclaration *cd); | 262 void toDt2(dt_t **pdt, ClassDeclaration *cd); |
264 | 263 |
265 Symbol *vtblsym; | 264 Symbol *vtblsym; |
266 | 265 |
267 // llvm | |
268 void offsetToIndex(Type* t, unsigned os, std::vector<unsigned>& result); | |
269 | |
270 ClassDeclaration *isClassDeclaration() { return (ClassDeclaration *)this; } | 266 ClassDeclaration *isClassDeclaration() { return (ClassDeclaration *)this; } |
271 }; | 267 }; |
272 | 268 |
273 struct InterfaceDeclaration : ClassDeclaration | 269 struct InterfaceDeclaration : ClassDeclaration |
274 { | 270 { |