mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 07:30:43 +03:00
Added pointers to shared constructors and destructors to ModuleInfo.
This commit is contained in:
parent
171ef1695c
commit
14c6dfb895
4 changed files with 78 additions and 82 deletions
|
@ -513,6 +513,18 @@ void DtoDeclareFunction(FuncDeclaration* fdecl)
|
|||
gIR->dtors.push_back(fdecl);
|
||||
}
|
||||
}
|
||||
// shared static ctor
|
||||
else if (fdecl->isSharedStaticCtorDeclaration()) {
|
||||
if (mustDefineSymbol(fdecl)) {
|
||||
gIR->sharedCtors.push_back(fdecl);
|
||||
}
|
||||
}
|
||||
// static dtor
|
||||
else if (fdecl->isSharedStaticDtorDeclaration()) {
|
||||
if (mustDefineSymbol(fdecl)) {
|
||||
gIR->sharedDtors.push_back(fdecl);
|
||||
}
|
||||
}
|
||||
|
||||
// we never reference parameters of function prototypes
|
||||
std::string str;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue