Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add alloc_map accessor
  • Loading branch information
bjorn3 committed Oct 21, 2018
commit 825b55e76333e5d0d71ef0a0f603f25901bc45ed
5 changes: 5 additions & 0 deletions src/librustc_mir/interpret/memory.rs
Original file line number Diff line number Diff line change
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