From 825b55e76333e5d0d71ef0a0f603f25901bc45ed Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sat, 20 Oct 2018 11:09:44 +0200 Subject: [PATCH] Add alloc_map accessor --- src/librustc_mir/interpret/memory.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/librustc_mir/interpret/memory.rs b/src/librustc_mir/interpret/memory.rs index 9febcceae068e..9fd4068a22f7e 100644 --- a/src/librustc_mir/interpret/memory.rs +++ b/src/librustc_mir/interpret/memory.rs @@ -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