Remove code_offset
; relative to code section?
This commit is contained in:
parent
df19820693
commit
e23d19b03a
|
@ -373,7 +373,8 @@ impl<'a> DebugLocReader<'a> {
|
|||
}
|
||||
|
||||
fn get_loc(&mut self, offset: usize) -> SourceLoc {
|
||||
let offset = u32::try_from(offset).unwrap() + self.code_offset;
|
||||
// TODO: add `code_offset`?
|
||||
let offset = u32::try_from(offset).unwrap();
|
||||
while self.locs.len() > 0 {
|
||||
let (start, len, loc) = self.locs[0];
|
||||
if offset < start {
|
||||
|
|
Loading…
Reference in a new issue