mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-18 01:39:03 +02:00
Change the numbering of static ctors/dtors to be module based instead of being global.
This fixes #210 by making sure that the static ctor always gets the same number, regardless of the order of the modules given at the command line.
This commit is contained in:
@@ -179,6 +179,10 @@ struct Module : Package
|
||||
|
||||
// array ops emitted in this module already
|
||||
StringTable arrayfuncs;
|
||||
|
||||
// for numbering staticCtors etc.
|
||||
int uniqueId;
|
||||
Identifier* generateId(Identifier* id);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user