Add alloc_map accessor

This commit is contained in:
bjorn3 2018-10-20 11:09:44 +02:00
parent 3742892749
commit 825b55e763
1 changed files with 5 additions and 0 deletions

View File

@ -603,6 +603,11 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M> {
self.dump_allocs(leaks);
n
}
/// This is used by [priroda](https://github.com/oli-obk/priroda)
pub fn alloc_map_ref(&self) -> &M::MemoryMap {
&self.alloc_map
}
}
/// Byte accessors