MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / write_symbol_map

Function write_symbol_map

tools/building.py:1129–1135  ·  view source on GitHub ↗
(wasm_file, symbols_file)

Source from the content-addressed store, hash-verified

1127
1128@ToolchainProfiler.profile()
1129def write_symbol_map(wasm_file, symbols_file):
1130 logger.debug('handle_final_wasm_symbols')
1131 names = read_name_section(wasm_file)
1132 assert names
1133 strings = [f'{id}:{name}' for id, name in names.items()]
1134 contents = '\n'.join(strings) + '\n'
1135 utils.write_file(symbols_file, contents)
1136
1137
1138def is_ar(filename):

Callers

nothing calls this directly

Calls 3

read_name_sectionFunction · 0.85
write_fileMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected