mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-17 05:13:14 +01:00
Added pointers to shared constructors and destructors to ModuleInfo.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user