From f326d7dfb080c1f02f44957b4f491b333b8a3adb Mon Sep 17 00:00:00 2001 From: Francis Ricci Date: Tue, 18 Jul 2017 23:51:44 +0000 Subject: Revert "Only scan global sections containing data in LSan on darwin" This reverts commit 7e46d78d47832f03ce42adcf56417fbfd47cbaad. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@308394 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/sanitizer_common/sanitizer_common.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/sanitizer_common/sanitizer_common.cc') diff --git a/lib/sanitizer_common/sanitizer_common.cc b/lib/sanitizer_common/sanitizer_common.cc index 3868d5469..7e6f8fce7 100644 --- a/lib/sanitizer_common/sanitizer_common.cc +++ b/lib/sanitizer_common/sanitizer_common.cc @@ -285,10 +285,9 @@ void LoadedModule::clear() { } void LoadedModule::addAddressRange(uptr beg, uptr end, bool executable, - bool writable, const char *name) { + bool writable) { void *mem = InternalAlloc(sizeof(AddressRange)); - AddressRange *r = - new(mem) AddressRange(beg, end, executable, writable, name); + AddressRange *r = new(mem) AddressRange(beg, end, executable, writable); ranges_.push_back(r); if (executable && end > max_executable_address_) max_executable_address_ = end; -- cgit v1.2.3