Merge commit '1eded3619d' into sync_cg_clif-2023-07-22
This commit is contained in:
parent
648f5e4208
commit
e8168ce8a3
30 changed files with 668 additions and 170 deletions
|
|
@ -165,7 +165,7 @@ impl FunctionDebugContext {
|
|||
for &MachSrcLoc { start, end, loc } in mcr.buffer.get_srclocs_sorted() {
|
||||
debug_context.dwarf.unit.line_program.row().address_offset = u64::from(start);
|
||||
if !loc.is_default() {
|
||||
let source_loc = *self.source_loc_set.get_index(loc.bits() as usize).unwrap();
|
||||
let source_loc = self.source_loc_set[loc.bits() as usize];
|
||||
create_row_for_span(debug_context, source_loc);
|
||||
} else {
|
||||
create_row_for_span(debug_context, self.function_source_loc);
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ pub(crate) struct DebugContext {
|
|||
pub(crate) struct FunctionDebugContext {
|
||||
entry_id: UnitEntryId,
|
||||
function_source_loc: (FileId, u64, u64),
|
||||
source_loc_set: indexmap::IndexSet<(FileId, u64, u64)>,
|
||||
source_loc_set: IndexSet<(FileId, u64, u64)>,
|
||||
}
|
||||
|
||||
impl DebugContext {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue