@@ -1909,7 +1909,7 @@ def phase_link(linker_arguments, wasm_target, js_syms):
19091909
19101910
19111911@ToolchainProfiler .profile_block ('post link' )
1912- def phase_post_link (options , state , in_wasm , wasm_target , target , js_syms , base_metadata = None , linker_inputs = None ):
1912+ def phase_post_link (options , in_wasm , wasm_target , target , js_syms , base_metadata = None , linker_inputs = None ):
19131913 global final_js
19141914
19151915 target_basename = unsuffixed_basename (target )
@@ -1941,7 +1941,7 @@ def phase_post_link(options, state, in_wasm, wasm_target, target, js_syms, base_
19411941
19421942 # If we are not emitting any JS then we are all done now
19431943 if options .oformat != OFormat .WASM :
1944- phase_final_emitting (options , state , target , js_target , wasm_target )
1944+ phase_final_emitting (options , target , js_target , wasm_target )
19451945
19461946
19471947@ToolchainProfiler .profile_block ('emscript' )
@@ -2110,7 +2110,7 @@ def create_worker_file(input_file, target_dir, output_file, options):
21102110
21112111
21122112@ToolchainProfiler .profile_block ('final emitting' )
2113- def phase_final_emitting (options , state , target , js_target , wasm_target ):
2113+ def phase_final_emitting (options , target , js_target , wasm_target ):
21142114 global final_js
21152115
21162116 if shared .SKIP_SUBPROCS :
@@ -3100,7 +3100,7 @@ def run_post_link(wasm_input, options, state):
31003100 settings .limit_settings (None )
31013101 target , wasm_target = phase_linker_setup (options , state )
31023102 process_libraries (state )
3103- phase_post_link (options , state , wasm_input , wasm_target , target , {})
3103+ phase_post_link (options , wasm_input , wasm_target , target , {})
31043104
31053105
31063106def run (linker_inputs , options , state ):
@@ -3171,6 +3171,6 @@ def add_js_deps(sym):
31713171
31723172 # Perform post-link steps (unless we are running bare mode)
31733173 if options .oformat != OFormat .BARE :
3174- phase_post_link (options , state , wasm_target , wasm_target , target , js_syms , base_metadata , linker_inputs )
3174+ phase_post_link (options , wasm_target , wasm_target , target , js_syms , base_metadata , linker_inputs )
31753175
31763176 return 0
0 commit comments