Begin cleanup for allowing for multiple LLVM modules

This commit is contained in:
gingerBill
2021-05-03 15:26:40 +01:00
parent 0d044eabac
commit b44a56118e
3 changed files with 320 additions and 279 deletions
+3 -1
View File
@@ -86,6 +86,7 @@ struct lbModule {
LLVMContextRef ctx;
CheckerInfo *info;
AstPackage *pkg; // associated
gbMutex mutex;
@@ -124,12 +125,13 @@ struct lbModule {
};
struct lbGenerator {
lbModule module;
CheckerInfo *info;
Array<String> output_object_paths;
String output_base;
String output_name;
Map<lbModule *> modules; // Key: AstPackage *
lbModule default_module;
};