- Hide .debug_str offset
- Hide offset into the CU of a die reference
Before:
0x0000002a: DW_TAG_subprogram DW_AT_low_pc (0x0000000100000fb0) DW_AT_high_pc (0x00000008) DW_AT_frame_base (<0x1> 56 ) DW_AT_name ( .debug_str[0x00000056] = "main") DW_AT_decl_file ("/Users/jonas/llvm/brief/a.c") DW_AT_decl_line (1) DW_AT_type (cu + 0x0043 => {0x00000043}) DW_AT_external (true)
After:
0x0000002a: DW_TAG_subprogram DW_AT_low_pc (0x0000000100000fb0) DW_AT_high_pc (0x00000008) DW_AT_frame_base (<0x1> 56 ) DW_AT_name ( .debug_str = "main") DW_AT_decl_file ("/Users/jonas/llvm/brief/a.c") DW_AT_decl_line (1) DW_AT_type (cu + 0x0043) DW_AT_external (true)
I think we might even want to drop the .debug_str = part. What does Darwin's dwarfdump do in comparison?