move image, import lib, and debug info builders outside of the state machine

This commit is contained in:
Nikita Smith
2025-06-25 10:53:24 -07:00
committed by Ryan Fleury
parent e971db7fdd
commit 1c08db2705
4 changed files with 273 additions and 253 deletions
+1 -5
View File
@@ -360,14 +360,10 @@ lnk_merge_debug_t_and_debug_p(Arena *arena, U64 obj_count, CV_DebugT *debug_t_ar
}
internal LNK_CodeViewInput
lnk_make_code_view_input(TP_Context *tp, TP_Arena *tp_arena, String8List lib_dir_list, LNK_ObjList obj_list)
lnk_make_code_view_input(TP_Context *tp, TP_Arena *tp_arena, String8List lib_dir_list, U64 obj_count, LNK_Obj **obj_arr)
{
ProfBegin("Extract CodeView");
Temp scratch = scratch_begin(0,0);
// obj list -> array
U64 obj_count = obj_list.count;
LNK_Obj **obj_arr = lnk_array_from_obj_list(tp_arena->v[0], obj_list);
// gather debug info sections from objs
ProfBegin("Collect CodeView");