summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_procmaps_mac.cc
diff options
context:
space:
mode:
authorFrancis Ricci <francisjricci@gmail.com>2017-05-10 16:33:43 +0000
committerFrancis Ricci <francisjricci@gmail.com>2017-05-10 16:33:43 +0000
commitd1423875f45a73ff2f35cde0ca05feccbf318911 (patch)
treedf7b9f4549760a325e6fbd8122874fea4ccd005e /lib/sanitizer_common/sanitizer_procmaps_mac.cc
parentdedf34d8265822fc7db648a2a21245851dca2ccf (diff)
Revert "Disable static caching of dyld header on Go sanitizers"
This is a problem on more than just the go sanitizers, so it's not a good enough fix for the issue. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@302692 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_procmaps_mac.cc')
-rw-r--r--lib/sanitizer_common/sanitizer_procmaps_mac.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/sanitizer_common/sanitizer_procmaps_mac.cc b/lib/sanitizer_common/sanitizer_procmaps_mac.cc
index 0b2193ae7..edb14c304 100644
--- a/lib/sanitizer_common/sanitizer_procmaps_mac.cc
+++ b/lib/sanitizer_common/sanitizer_procmaps_mac.cc
@@ -227,12 +227,8 @@ static const struct mach_header *get_dyld_image_header() {
// and it is expensive to compute once many libraries have been loaded,
// so cache it here and do not reset.
static const struct mach_header *get_dyld_hdr() {
-#if !SANITIZER_GO
static const struct mach_header *header = get_dyld_image_header();
return header;
-#else
- return get_dyld_image_header();
-#endif
}
void MemoryMappingLayout::GetSegmentAddrRange(uptr *start, uptr *end,