Apply changes from r1482 to D2 frontend too. Completely untested, but ldc2

compiles again.
This commit is contained in:
Frits van Bommel
2009-06-08 13:45:26 +02:00
parent b999f679a7
commit 8044a67720
7 changed files with 74 additions and 0 deletions

View File

@@ -56,6 +56,10 @@ AggregateDeclaration::AggregateDeclaration(Loc loc, Identifier *id)
aliasthis = NULL;
#endif
dtor = NULL;
#if IN_LLVM
availableExternally = true; // assume this unless proven otherwise
#endif
}
enum PROT AggregateDeclaration::prot()
@@ -85,6 +89,10 @@ void AggregateDeclaration::semantic2(Scope *sc)
void AggregateDeclaration::semantic3(Scope *sc)
{ int i;
// LDC
if (!global.params.useAvailableExternally)
availableExternally = false;
//printf("AggregateDeclaration::semantic3(%s)\n", toChars());
if (members)
{