Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve more translated address in DWARF debug info #255

Merged
merged 11 commits into from
Nov 27, 2023
11 changes: 10 additions & 1 deletion src/ir/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ pub struct InstrSeq {

/// The instructions that make up the body of this block.
pub instrs: Vec<(Instr, InstrLocId)>,

/// For code address mapping
pub end: InstrLocId,
}

impl Deref for InstrSeq {
Expand All @@ -185,7 +188,13 @@ impl InstrSeq {
/// Construct a new instruction sequence.
pub(crate) fn new(id: InstrSeqId, ty: InstrSeqType) -> InstrSeq {
let instrs = vec![];
InstrSeq { id, ty, instrs }
let end = Default::default();
InstrSeq {
id,
ty,
instrs,
end,
}
}

/// Get the id of this instruction sequence.
Expand Down
Loading
Loading