DtoSymbolAddress: Remove support for unused ClassInfoDeclaration

It will be gone in 2.068.
This commit is contained in:
David Nadlinger 2015-05-29 21:49:22 +02:00
parent 3abe023e3e
commit 568bf3723b
3 changed files with 0 additions and 10 deletions

View file

@ -361,7 +361,6 @@ public:
Dsymbol *syntaxCopy(Dsymbol *); Dsymbol *syntaxCopy(Dsymbol *);
void semantic(Scope *sc); void semantic(Scope *sc);
ClassInfoDeclaration* isClassInfoDeclaration() { return this; }
void accept(Visitor *v) { v->visit(this); } void accept(Visitor *v) { v->visit(this); }
}; };

View file

@ -304,8 +304,6 @@ public:
virtual OverloadSet *isOverloadSet() { return NULL; } virtual OverloadSet *isOverloadSet() { return NULL; }
virtual void accept(Visitor *v) { v->visit(this); } virtual void accept(Visitor *v) { v->visit(this); }
#if IN_LLVM #if IN_LLVM
virtual ClassInfoDeclaration* isClassInfoDeclaration() { return NULL; }
// llvm stuff // llvm stuff
int llvmInternal; int llvmInternal;

View file

@ -1713,13 +1713,6 @@ DValue* DtoSymbolAddress(Loc& loc, Type* type, Declaration* decl)
val = DtoArrayLen(gIR->arrays.back()); val = DtoArrayLen(gIR->arrays.back());
return new DImValue(type, val); return new DImValue(type, val);
} }
// classinfo
else if (ClassInfoDeclaration* cid = vd->isClassInfoDeclaration())
{
Logger::println("ClassInfoDeclaration: %s", cid->cd->toChars());
DtoResolveClass(cid->cd);
return new DVarValue(type, vd, getIrAggr(cid->cd)->getClassInfoSymbol());
}
// typeinfo // typeinfo
else if (TypeInfoDeclaration* tid = vd->isTypeInfoDeclaration()) else if (TypeInfoDeclaration* tid = vd->isTypeInfoDeclaration())
{ {