merged rdim_help.c into rdim_local.c

This commit is contained in:
Nikita Smith
2025-03-26 12:19:16 -07:00
parent 7d5110e752
commit a63254b70d
17 changed files with 1528 additions and 1543 deletions
+1 -1
View File
@@ -1838,7 +1838,7 @@ d2r_convert(Arena *arena, D2R_User2Convert *in)
}
internal RDIM_BakeResults
d2r_bake(RDIM_HelpState *state, RDIM_BakeParams *in_params)
d2r_bake(RDIM_LocalState *state, RDIM_BakeParams *in_params)
{
return rdim_bake(state, in_params);
}
+1 -1
View File
@@ -56,7 +56,7 @@ internal D2R_User2Convert * d2r_user2convert_from_cmdln(Arena *arena, CmdLine *c
// Top-Level Conversion Entry Point
internal RDIM_BakeParams * d2r_convert (Arena *arena, D2R_User2Convert *in);
internal RDIM_BakeResults d2r_bake (RDIM_HelpState *state, RDIM_BakeParams *in);
internal RDIM_BakeResults d2r_bake (RDIM_LocalState *state, RDIM_BakeParams *in);
internal RDIM_SerializedSectionBundle d2r_compress(Arena *arena, RDIM_SerializedSectionBundle in);
////////////////////////////////
+2 -4
View File
@@ -25,7 +25,6 @@
#include "os/os_inc.h"
#include "async/async.h"
#include "rdi_make/rdi_make_local.h"
#include "rdi_make/rdi_make_help.h"
#include "linker/path_ext/path.h"
#include "linker/hash_table.h"
#include "coff/coff.h"
@@ -44,7 +43,6 @@
#include "coff/coff_parse.c"
#include "pe/pe.c"
#include "rdi_make/rdi_make_local.c"
#include "rdi_make/rdi_make_help.c"
#include "linker/rdi/rdi_coff.c"
#include "linker/path_ext/path.c"
#include "linker/hash_table.c"
@@ -89,14 +87,14 @@ entry_point(CmdLine *cmdline)
os_abort(0);
}
RDIM_HelpState *rdim_help_state = rdim_help_init();
RDIM_LocalState *rdim_local_state = rdim_local_init();
ProfBegin("convert");
RDIM_BakeParams *convert2bake = d2r_convert(arena, user2convert);
ProfEnd();
ProfBegin("bake");
RDIM_BakeResults bake2srlz = d2r_bake(rdim_help_state, convert2bake);
RDIM_BakeResults bake2srlz = d2r_bake(rdim_local_state, convert2bake);
ProfEnd();
ProfBegin("serialize bake");