Skip to content

Commit 7805dc5

Browse files
committed
Using demangled symbols
1 parent b8ae599 commit 7805dc5

File tree

1 file changed

+2
-0
lines changed
  • crates/toolchain/transpiler/src

1 file changed

+2
-0
lines changed

crates/toolchain/transpiler/src/elf.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ impl Elf {
121121

122122
for symbol in symtab.iter() {
123123
if symbol.st_symtype() == elf::abi::STT_FUNC {
124+
let raw_name = stringtab.get(symbol.st_name as usize).unwrap().to_string();
125+
let demangled_name = rustc_demangle::demangle(&raw_name).to_string();
124126
fn_bounds.insert(
125127
symbol.st_value as u32,
126128
FnBound {

0 commit comments

Comments
 (0)