Skip to content

Commit

Permalink
Add alloc_map accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Oct 21, 2018
1 parent 3742892 commit 825b55e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/librustc_mir/interpret/memory.rs
Expand Up @@ -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
Expand Down

0 comments on commit 825b55e

Please sign in to comment.