mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-02 16:11:08 +03:00
DtoSymbolAddress: Remove support for unused ClassInfoDeclaration
It will be gone in 2.068.
This commit is contained in:
parent
3abe023e3e
commit
568bf3723b
3 changed files with 0 additions and 10 deletions
|
@ -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); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue