Fixed the order of static destructors

This commit is contained in:
Alexey Prokhin
2010-12-30 14:04:24 +03:00
parent 6c2ccaf945
commit 8d7ff66019
3 changed files with 13 additions and 12 deletions

View File

@@ -160,14 +160,14 @@ struct IRState
llvm::DIFactory difactory;
// static ctors/dtors/unittests
typedef std::vector<FuncDeclaration*> FuncDeclVector;
FuncDeclVector ctors;
FuncDeclVector dtors;
typedef std::list<FuncDeclaration*> FuncDeclList;
FuncDeclList ctors;
FuncDeclList dtors;
#if DMDV2
FuncDeclVector sharedCtors;
FuncDeclVector sharedDtors;
FuncDeclList sharedCtors;
FuncDeclList sharedDtors;
#endif
FuncDeclVector unitTests;
FuncDeclList unitTests;
// all template instances that had members emitted
// currently only filled for singleobj