mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
Cache the paddding filler type
This commit is contained in:
@@ -137,6 +137,12 @@ enum lbFunctionPassManagerKind {
|
||||
lbFunctionPassManager_COUNT
|
||||
};
|
||||
|
||||
struct lbPadType {
|
||||
i64 padding;
|
||||
i64 padding_align;
|
||||
LLVMTypeRef type;
|
||||
};
|
||||
|
||||
struct lbModule {
|
||||
LLVMModuleRef mod;
|
||||
LLVMContextRef ctx;
|
||||
@@ -199,6 +205,9 @@ struct lbModule {
|
||||
PtrMap<Ast *, lbAddr> exact_value_compound_literal_addr_map; // Key: Ast_CompoundLit
|
||||
|
||||
LLVMPassManagerRef function_pass_managers[lbFunctionPassManager_COUNT];
|
||||
|
||||
BlockingMutex pad_types_mutex;
|
||||
Array<lbPadType> pad_types;
|
||||
};
|
||||
|
||||
struct lbEntityCorrection {
|
||||
|
||||
Reference in New Issue
Block a user