Mercurial > projects > ldc
comparison dmd2/struct.c @ 1487:f62347c22d81
Apply changes from r1482 to D2 frontend too. Completely untested, but ldc2
compiles again.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Mon, 08 Jun 2009 13:45:26 +0200 |
parents | 638d16625da2 |
children | 54b3c1394d62 |
comparison
equal
deleted
inserted
replaced
1486:9ed0695cb93c | 1487:f62347c22d81 |
---|---|
54 ctor = NULL; | 54 ctor = NULL; |
55 defaultCtor = NULL; | 55 defaultCtor = NULL; |
56 aliasthis = NULL; | 56 aliasthis = NULL; |
57 #endif | 57 #endif |
58 dtor = NULL; | 58 dtor = NULL; |
59 | |
60 #if IN_LLVM | |
61 availableExternally = true; // assume this unless proven otherwise | |
62 #endif | |
59 } | 63 } |
60 | 64 |
61 enum PROT AggregateDeclaration::prot() | 65 enum PROT AggregateDeclaration::prot() |
62 { | 66 { |
63 return protection; | 67 return protection; |
82 } | 86 } |
83 } | 87 } |
84 | 88 |
85 void AggregateDeclaration::semantic3(Scope *sc) | 89 void AggregateDeclaration::semantic3(Scope *sc) |
86 { int i; | 90 { int i; |
91 | |
92 // LDC | |
93 if (!global.params.useAvailableExternally) | |
94 availableExternally = false; | |
87 | 95 |
88 //printf("AggregateDeclaration::semantic3(%s)\n", toChars()); | 96 //printf("AggregateDeclaration::semantic3(%s)\n", toChars()); |
89 if (members) | 97 if (members) |
90 { | 98 { |
91 sc = sc->push(this); | 99 sc = sc->push(this); |