Minor cleanup, remove Section::symbol_data

This commit is contained in:
2025-05-07 16:43:34 -06:00
parent 7e08f9715b
commit b77df77000
3 changed files with 6 additions and 16 deletions

View File

@@ -76,7 +76,9 @@ impl Arch for ArchSuperH {
sh2_disasm(0, opcode, true, &mut parts, &resolved, &mut branch_dest);
if let Some(symbol_data) = resolved.section.symbol_data(resolved.symbol) {
if let Some(symbol_data) =
resolved.section.data_range(resolved.symbol.address, resolved.symbol.size as usize)
{
// scan for data
// map of instruction offsets to data target offsets
let mut data_offsets = BTreeMap::<u64, DataInfo>::new();