Skip to content

Commit 825b55e

Browse files
committed
Add alloc_map accessor
1 parent 3742892 commit 825b55e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/librustc_mir/interpret/memory.rs

+5
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,11 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M> {
603603
self.dump_allocs(leaks);
604604
n
605605
}
606+
607+
/// This is used by [priroda](https://github.com/oli-obk/priroda)
608+
pub fn alloc_map_ref(&self) -> &M::MemoryMap {
609+
&self.alloc_map
610+
}
606611
}
607612

608613
/// Byte accessors

0 commit comments

Comments
 (0)