diff options
Diffstat (limited to 'rust/examples')
| -rw-r--r-- | rust/examples/dwarf/dwarf_export/src/lib.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/rust/examples/dwarf/dwarf_export/src/lib.rs b/rust/examples/dwarf/dwarf_export/src/lib.rs index a122e94e..6af9afe2 100644 --- a/rust/examples/dwarf/dwarf_export/src/lib.rs +++ b/rust/examples/dwarf/dwarf_export/src/lib.rs @@ -703,11 +703,7 @@ fn write_dwarf<T: gimli::Endianity>( // Create section in output object let output_id = out_object.add_section( vec![], // Only machos have segment names? see object::write::Object::segment_name - input_id - .dwo_name() - .unwrap_or_else(|| input_id.name()) - .as_bytes() - .to_vec(), + input_id.name().as_bytes().to_vec(), SectionKind::Debug, // TODO: Might be wrong ); |
