MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / find_local_label

Function find_local_label

tests/integration/linker.rs:164–171  ·  view source on GitHub ↗
(assembled: &AssembledOutput)

Source from the content-addressed store, hash-verified

162}
163
164fn find_local_label(assembled: &AssembledOutput) -> String {
165 assembled
166 .symbols_iter()
167 .map(|(name, _)| name)
168 .find(|name| !assembled.is_symbol_global(name) && name.contains("__"))
169 .map(str::to_owned)
170 .unwrap_or_else(|| panic!("expected at least one local control-flow label"))
171}
172
173#[test]
174fn elf_program_headers_keep_page_alignment() {

Calls 3

symbols_iterMethod · 0.80
is_symbol_globalMethod · 0.80
containsMethod · 0.45