Method
from_object_symbol
(sym: &object::Symbol<'a, '_, &'a [u8]>)
Source from the content-addressed store, hash-verified
| 487 | |
| 488 | impl DisasmMode { |
| 489 | fn from_object_symbol<'a>(sym: &object::Symbol<'a, '_, &'a [u8]>) -> Option<Self> { |
| 490 | sym.name() |
| 491 | .ok() |
| 492 | .and_then(unarm::ParseMode::from_mapping_symbol) |
| 493 | .map(|mapping| DisasmMode { address: sym.address() as u32, mapping }) |
| 494 | } |
| 495 | |
| 496 | fn from_symbol(sym: &Symbol) -> Option<Self> { |
| 497 | unarm::ParseMode::from_mapping_symbol(&sym.name) |
Callers
nothing calls this directly
Tested by
no test coverage detected