mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 17:11:44 +03:00
Refactoring: Improve Ir{Aggr,Class,Struct} encapsulation
This commit is contained in:
parent
a765bf8901
commit
e9021fd6c8
6 changed files with 122 additions and 112 deletions
|
@ -487,12 +487,8 @@ class DeclareOrDefineVisitor : public Visitor {
|
|||
return;
|
||||
}
|
||||
|
||||
LLConstant *init = irstruct->getTypeInfoInit(); // might define ti!
|
||||
|
||||
if (!ti->hasInitializer()) {
|
||||
defineGlobal(ti, init, sd);
|
||||
ti->setLinkage(TYPEINFO_LINKAGE_TYPE); // override
|
||||
}
|
||||
irstruct->getTypeInfoSymbol(/*define=*/true);
|
||||
ti->setLinkage(TYPEINFO_LINKAGE_TYPE); // override
|
||||
}
|
||||
|
||||
// Only declare class TypeInfos. They are defined once in their owning module
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue