Removed obsolete importprot members.

This commit is contained in:
David Nadlinger 2013-06-11 02:00:27 +02:00
parent 4d3f9333c6
commit ab7ffa9988
4 changed files with 1 additions and 10 deletions

View file

@ -446,7 +446,6 @@ AliasDeclaration::AliasDeclaration(Loc loc, Identifier *id, Type *type)
this->haliassym = NULL; this->haliassym = NULL;
this->overnext = NULL; this->overnext = NULL;
this->inSemantic = 0; this->inSemantic = 0;
this->importprot = PROTundefined;
assert(type); assert(type);
} }
@ -612,9 +611,6 @@ void AliasDeclaration::semantic(Scope *sc)
if (overnext) if (overnext)
{ {
FuncAliasDeclaration *fa = new FuncAliasDeclaration(f); FuncAliasDeclaration *fa = new FuncAliasDeclaration(f);
#if IN_LLVM
fa->importprot = importprot;
#endif
if (!fa->overloadInsert(overnext)) if (!fa->overloadInsert(overnext))
ScopeDsymbol::multiplyDefined(Loc(), overnext, f); ScopeDsymbol::multiplyDefined(Loc(), overnext, f);
overnext = NULL; overnext = NULL;

View file

@ -268,7 +268,6 @@ struct AliasDeclaration : Declaration
Dsymbol *overnext; // next in overload list Dsymbol *overnext; // next in overload list
Dsymbol *import; // !=NULL if unresolved internal alias for selective import Dsymbol *import; // !=NULL if unresolved internal alias for selective import
int inSemantic; int inSemantic;
PROT importprot; // if generated by import, store its protection
AliasDeclaration(Loc loc, Identifier *ident, Type *type); AliasDeclaration(Loc loc, Identifier *ident, Type *type);
AliasDeclaration(Loc loc, Identifier *ident, Dsymbol *s); AliasDeclaration(Loc loc, Identifier *ident, Dsymbol *s);
@ -963,7 +962,6 @@ struct FuncAliasDeclaration : FuncDeclaration
{ {
FuncDeclaration *funcalias; FuncDeclaration *funcalias;
int hasOverloads; int hasOverloads;
PROT importprot; // if generated by import, store its protection
FuncAliasDeclaration(FuncDeclaration *funcalias, int hasOverloads = 1); FuncAliasDeclaration(FuncDeclaration *funcalias, int hasOverloads = 1);

View file

@ -4007,9 +4007,6 @@ FuncAliasDeclaration::FuncAliasDeclaration(FuncDeclaration *funcalias, int hasOv
{ {
assert(funcalias != this); assert(funcalias != this);
this->funcalias = funcalias; this->funcalias = funcalias;
#if IN_LLVM
importprot = PROTundefined;
#endif
this->hasOverloads = hasOverloads; this->hasOverloads = hasOverloads;
if (hasOverloads) if (hasOverloads)

View file

@ -1951,7 +1951,7 @@ DValue* DtoSymbolAddress(const Loc& loc, Type* type, Declaration* decl)
return new DFuncValue(fdecl, func); return new DFuncValue(fdecl, func);
} }
if (StaticStructInitDeclaration* sdecl = decl->isStaticStructInitDeclaration()) if (SymbolDeclaration* sdecl = decl->isSymbolDeclaration())
{ {
// this seems to be the static initialiser for structs // this seems to be the static initialiser for structs
Type* sdecltype = sdecl->type->toBasetype(); Type* sdecltype = sdecl->type->toBasetype();