From cae486c0635fe4e4bca10eb4b47fe22009e5bd7c Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Tue, 28 Aug 2012 07:22:24 +0000 Subject: [PATCH] [Sanitizer] One more method stub for Windows llvm-svn: 162739 --- .../lib/sanitizer_common/sanitizer_procmaps.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_procmaps.h b/compiler-rt/lib/sanitizer_common/sanitizer_procmaps.h index 22ba0a75ab0b..a556b2369e31 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_procmaps.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_procmaps.h @@ -24,10 +24,14 @@ class MemoryMappingLayout { MemoryMappingLayout() { UNIMPLEMENTED(); } + bool GetObjectNameAndOffset(uptr addr, uptr *offset, + char filename[], uptr filename_size) { + UNIMPLEMENTED(); + return false; + } }; #else // _WIN32 - class MemoryMappingLayout { public: MemoryMappingLayout(); @@ -71,12 +75,12 @@ class MemoryMappingLayout { return false; } -#if defined __linux__ +# if defined __linux__ char *proc_self_maps_buff_; uptr proc_self_maps_buff_mmaped_size_; uptr proc_self_maps_buff_len_; char *current_; -#elif defined __APPLE__ +# elif defined __APPLE__ template bool NextSegmentLoad(uptr *start, uptr *end, uptr *offset, char filename[], uptr filename_size); @@ -84,7 +88,7 @@ class MemoryMappingLayout { u32 current_magic_; int current_load_cmd_count_; char *current_load_cmd_addr_; -#endif +# endif }; #endif // _WIN32