[sanitizer_common] Don't provide sanitizer_procmaps API functions where not defined
authorFrancis Ricci <francisjricci@gmail.com>
Mon, 25 Sep 2017 20:48:51 +0000 (20:48 +0000)
committerFrancis Ricci <francisjricci@gmail.com>
Mon, 25 Sep 2017 20:48:51 +0000 (20:48 +0000)
commit6e4dfccc31324cd65b07f5efe4274604ce89c328
tree579198f7fa2e4e7368b7e5ed813f1a403aab5012
parentf5a4377333d34240470a65928f5ad3ce06f5c28a
[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_common.h
compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc
compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.h
compiler-rt/lib/sanitizer_common/sanitizer_procmaps.h
compiler-rt/lib/sanitizer_common/sanitizer_win.cc
compiler-rt/lib/sanitizer_common/sanitizer_win.h