From 6e4dfccc31324cd65b07f5efe4274604ce89c328 Mon Sep 17 00:00:00 2001 From: Francis Ricci Date: Mon, 25 Sep 2017 20:48:51 +0000 Subject: [sanitizer_common] Don't provide sanitizer_procmaps API functions where not defined Summary: Platforms that don't implement procmaps (primarily fuchsia and windows) still expose the procmaps API when including sanitizer_procmaps.h, despite not implementing the functions provided by that header. Ensure that the API is only exposed on platforms that implement it. Reviewers: vitalybuka, alekseyshl, kubamracek Subscribers: llvm-commits, krytarowski Differential Revision: https://reviews.llvm.org/D38187 llvm-svn: 314149 --- compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.h') diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.h b/compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.h index 48d7154f309..18821b4fd9f 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.h @@ -25,10 +25,6 @@ namespace __sanitizer { extern uptr MainThreadStackBase, MainThreadStackSize; extern sanitizer_shadow_bounds_t ShadowBounds; -// TODO(fjricci) Remove this struct by refactoring common functions -// out of sanitizer_procmaps.h -struct MemoryMappingLayoutData {}; - } // namespace __sanitizer #endif // SANITIZER_FUCHSIA -- cgit v1.2.3