summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_procmaps.h
diff options
context:
space:
mode:
authorKuba Mracek <mracek@apple.com>2017-01-06 19:34:54 +0000
committerKuba Mracek <mracek@apple.com>2017-01-06 19:34:54 +0000
commit0aad13bae1d86febf022d0c9b0299183e1d00f34 (patch)
treeaeaecb4e2e090ea3fcbe93677588a682f75a6081 /lib/sanitizer_common/sanitizer_procmaps.h
parentd615dc8ac1e6e04b593eb7409b6ff609bc529761 (diff)
downloadcompiler-rt-0aad13bae1d86febf022d0c9b0299183e1d00f34.tar.gz
[sanitizer] Track which modules are instrumented in LoadedModule objects
This patch adds tracking which modules are instrumented and which are not. On macOS, instrumented modules link against the ASan/TSan/... dylib, so we can just check if such a load command exists or not. Differential Revision: https://reviews.llvm.org/D28263 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@291268 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_procmaps.h')
-rw-r--r--lib/sanitizer_common/sanitizer_procmaps.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_procmaps.h b/lib/sanitizer_common/sanitizer_procmaps.h
index 5c26fb77e..9dbb5ef0f 100644
--- a/lib/sanitizer_common/sanitizer_procmaps.h
+++ b/lib/sanitizer_common/sanitizer_procmaps.h
@@ -77,6 +77,7 @@ class MemoryMappingLayout {
u8 current_uuid_[kModuleUUIDSize];
int current_load_cmd_count_;
char *current_load_cmd_addr_;
+ bool current_instrumented_;
# endif
};