Skip to content

Commit

Permalink
Rename has_erased_parent -> is_erased_root and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cadmic committed May 16, 2024
1 parent cb0e073 commit 1ac4939
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/cmd/dwarf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ where
None => (Excluded(tag.key), Unbounded),
};
for (_, child) in info.tags.range(range) {
if child.has_erased_parent {
if child.is_erased_root {
children.push(child);
}
}
Expand Down
10 changes: 5 additions & 5 deletions src/util/dwarf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,8 @@ pub struct Attribute {
pub struct Tag {
pub key: u32,
pub kind: TagKind,
pub is_erased: bool,
pub has_erased_parent: bool,
pub is_erased: bool, // Tag was deleted but has been reconstructed
pub is_erased_root: bool, // Tag is erased and is the root of a tree of erased tags
pub attributes: Vec<Attribute>,
}

Expand Down Expand Up @@ -551,7 +551,7 @@ where
key: position as u32,
kind: TagKind::Padding,
is_erased,
has_erased_parent: false,
is_erased_root: false,
attributes: Vec::new(),
});
return Ok(tags);
Expand Down Expand Up @@ -591,7 +591,7 @@ where
key: position as u32,
kind,
is_erased: true,
has_erased_parent: true,
is_erased_root: true,
attributes,
});

Expand All @@ -613,7 +613,7 @@ where
key: position as u32,
kind: tag,
is_erased,
has_erased_parent: false,
is_erased_root: false,
attributes,
});
}
Expand Down

0 comments on commit 1ac4939

Please sign in to comment.