[PATCH] D38187: [sanitizer_common] Don't provide sanitizer_procmaps API functions where not defined

Francis Ricci via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 25 05:03:41 PDT 2017


fjricci created this revision.
Herald added a subscriber: krytarowski.

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.


https://reviews.llvm.org/D38187

Files:
  lib/sanitizer_common/sanitizer_common.h
  lib/sanitizer_common/sanitizer_fuchsia.cc
  lib/sanitizer_common/sanitizer_fuchsia.h
  lib/sanitizer_common/sanitizer_procmaps.h
  lib/sanitizer_common/sanitizer_win.cc
  lib/sanitizer_common/sanitizer_win.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38187.116399.patch
Type: text/x-patch
Size: 4183 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170925/48f33f9d/attachment.bin>


More information about the llvm-commits mailing list