mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-20 06:43:14 +01:00
Removed obsolete importprot members.
This commit is contained in:
@@ -446,7 +446,6 @@ AliasDeclaration::AliasDeclaration(Loc loc, Identifier *id, Type *type)
|
||||
this->haliassym = NULL;
|
||||
this->overnext = NULL;
|
||||
this->inSemantic = 0;
|
||||
this->importprot = PROTundefined;
|
||||
assert(type);
|
||||
}
|
||||
|
||||
@@ -612,9 +611,6 @@ void AliasDeclaration::semantic(Scope *sc)
|
||||
if (overnext)
|
||||
{
|
||||
FuncAliasDeclaration *fa = new FuncAliasDeclaration(f);
|
||||
#if IN_LLVM
|
||||
fa->importprot = importprot;
|
||||
#endif
|
||||
if (!fa->overloadInsert(overnext))
|
||||
ScopeDsymbol::multiplyDefined(Loc(), overnext, f);
|
||||
overnext = NULL;
|
||||
|
||||
@@ -268,7 +268,6 @@ struct AliasDeclaration : Declaration
|
||||
Dsymbol *overnext; // next in overload list
|
||||
Dsymbol *import; // !=NULL if unresolved internal alias for selective import
|
||||
int inSemantic;
|
||||
PROT importprot; // if generated by import, store its protection
|
||||
|
||||
AliasDeclaration(Loc loc, Identifier *ident, Type *type);
|
||||
AliasDeclaration(Loc loc, Identifier *ident, Dsymbol *s);
|
||||
@@ -963,7 +962,6 @@ struct FuncAliasDeclaration : FuncDeclaration
|
||||
{
|
||||
FuncDeclaration *funcalias;
|
||||
int hasOverloads;
|
||||
PROT importprot; // if generated by import, store its protection
|
||||
|
||||
FuncAliasDeclaration(FuncDeclaration *funcalias, int hasOverloads = 1);
|
||||
|
||||
|
||||
@@ -4007,9 +4007,6 @@ FuncAliasDeclaration::FuncAliasDeclaration(FuncDeclaration *funcalias, int hasOv
|
||||
{
|
||||
assert(funcalias != this);
|
||||
this->funcalias = funcalias;
|
||||
#if IN_LLVM
|
||||
importprot = PROTundefined;
|
||||
#endif
|
||||
|
||||
this->hasOverloads = hasOverloads;
|
||||
if (hasOverloads)
|
||||
|
||||
@@ -1951,7 +1951,7 @@ DValue* DtoSymbolAddress(const Loc& loc, Type* type, Declaration* decl)
|
||||
return new DFuncValue(fdecl, func);
|
||||
}
|
||||
|
||||
if (StaticStructInitDeclaration* sdecl = decl->isStaticStructInitDeclaration())
|
||||
if (SymbolDeclaration* sdecl = decl->isSymbolDeclaration())
|
||||
{
|
||||
// this seems to be the static initialiser for structs
|
||||
Type* sdecltype = sdecl->type->toBasetype();
|
||||
|
||||
Reference in New Issue
Block a user