Prepare to multithread object generation

This commit is contained in:
gingerBill
2021-05-03 20:45:27 +01:00
parent 866d5302fe
commit a5eea97edb
3 changed files with 123 additions and 29 deletions
+2 -2
View File
@@ -90,8 +90,6 @@ struct lbModule {
CheckerInfo *info;
AstPackage *pkg; // associated
gbMutex mutex;
Map<LLVMTypeRef> types; // Key: Type *
Map<Type *> llvm_types; // Key: LLVMTypeRef
i32 internal_type_level;
@@ -127,6 +125,8 @@ struct lbModule {
struct lbGenerator {
CheckerInfo *info;
gbMutex mutex;
Array<String> output_object_paths;
Array<String> output_temp_paths;
String output_base;