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

Function check_disallowed_symbols

scripts/check_binary_dependencies.py:164–169  ·  view source on GitHub ↗

Check a collection of symbols for disallowed prefixes.

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

Source from the content-addressed store, hash-verified

162
163
164def check_disallowed_symbols(cxxfilt: str, symbols: Iterable[Symbol]) -> None:
165 """Check a collection of symbols for disallowed prefixes."""
166 for symbol in symbols:
167 assert len(symbol.demangled) > 0
168 if symbol.demangled.startswith(tuple(DISALLOW_LIST)):
169 symbol.disallowed = True
170
171
172def get_cached_symbols(nm: str, build_root: Path) -> Dict[str, Symbol]:

Callers 2

check_dynamicFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected