Use type hash for doc writer

This commit is contained in:
gingerBill
2025-02-24 15:37:54 +00:00
parent de70e6faa0
commit f56a0a80d3
2 changed files with 12 additions and 52 deletions
+5 -5
View File
@@ -160,9 +160,9 @@ struct lbModule {
AstFile *file; // possibly associated
char const *module_name;
PtrMap<u64, LLVMTypeRef> types; // mutex: types_mutex
PtrMap<u64/*type hash*/, LLVMTypeRef> types; // mutex: types_mutex
PtrMap<void *, lbStructFieldRemapping> struct_field_remapping; // Key: LLVMTypeRef or Type *, mutex: types_mutex
PtrMap<u64, LLVMTypeRef> func_raw_types; // mutex: func_raw_types_mutex
PtrMap<u64/*type hash*/, LLVMTypeRef> func_raw_types; // mutex: func_raw_types_mutex
RecursiveMutex types_mutex;
RecursiveMutex func_raw_types_mutex;
i32 internal_type_level;
@@ -178,7 +178,7 @@ struct lbModule {
StringMap<LLVMValueRef> const_strings;
PtrMap<u64, struct lbFunctionType *> function_type_map;
PtrMap<u64/*type hash*/, struct lbFunctionType *> function_type_map;
StringMap<lbProcedure *> gen_procs; // key is the canonicalized name
@@ -201,8 +201,8 @@ struct lbModule {
StringMap<lbObjcRef> objc_classes;
StringMap<lbObjcRef> objc_selectors;
PtrMap<u64, lbAddr> map_cell_info_map; // address of runtime.Map_Info
PtrMap<u64, lbAddr> map_info_map; // address of runtime.Map_Cell_Info
PtrMap<u64/*type hash*/, lbAddr> map_cell_info_map; // address of runtime.Map_Info
PtrMap<u64/*type hash*/, lbAddr> map_info_map; // address of runtime.Map_Cell_Info
PtrMap<Ast *, lbAddr> exact_value_compound_literal_addr_map; // Key: Ast_CompoundLit