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

Function get_weak_imports

tools/webassembly.py:656–663  ·  view source on GitHub ↗
(wasm_file)

Source from the content-addressed store, hash-verified

654
655
656def get_weak_imports(wasm_file):
657 weak_imports = []
658 dylink_sec = parse_dylink_section(wasm_file)
659 for symbols in dylink_sec.import_info.values():
660 for symbol, flags in symbols.items():
661 if flags & SYMBOL_BINDING_MASK == SYMBOL_BINDING_WEAK:
662 weak_imports.append(symbol)
663 return weak_imports

Callers

nothing calls this directly

Calls 2

parse_dylink_sectionFunction · 0.85
appendMethod · 0.80

Tested by

no test coverage detected