MCPcopy Create free account
hub / github.com/pytorch/executorch / demangle_symbols

Function demangle_symbols

scripts/check_binary_dependencies.py:157–161  ·  view source on GitHub ↗

Demangle a collection of symbols using the cxxfilt tool.

(cxxfilt: str, mangled_symbols: Iterable[Symbol])

Source from the content-addressed store, hash-verified

155
156
157def demangle_symbols(cxxfilt: str, mangled_symbols: Iterable[Symbol]) -> None:
158 """Demangle a collection of symbols using the cxxfilt tool."""
159 output = get_tool_output([cxxfilt] + [symbol.mangled for symbol in mangled_symbols])
160 for symbol, demangled in zip(mangled_symbols, output.splitlines()):
161 symbol.demangled = demangled
162
163
164def check_disallowed_symbols(cxxfilt: str, symbols: Iterable[Symbol]) -> None:

Callers 2

check_dynamicFunction · 0.85

Calls 1

get_tool_outputFunction · 0.85

Tested by

no test coverage detected