diff options
author | Sergey Matveev <earthdok@google.com> | 2013-06-06 14:17:56 +0000 |
---|---|---|
committer | Sergey Matveev <earthdok@google.com> | 2013-06-06 14:17:56 +0000 |
commit | cd571e07fd1179383188c70338fa0dc1c452cb19 (patch) | |
tree | b83b2c886c931d18b6542013180cc4b0170af411 /include/sanitizer/lsan_interface.h | |
parent | 722f2e6a6125a0d5c9d453278b0f292e3410124d (diff) | |
download | compiler-rt-cd571e07fd1179383188c70338fa0dc1c452cb19.tar.gz compiler-rt-cd571e07fd1179383188c70338fa0dc1c452cb19.tar.bz2 compiler-rt-cd571e07fd1179383188c70338fa0dc1c452cb19.tar.xz |
[lsan] Implement __lsan_ignore_object().
Leak annotation similar to HeapChecker's IgnoreObject().
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183412 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/sanitizer/lsan_interface.h')
-rw-r--r-- | include/sanitizer/lsan_interface.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sanitizer/lsan_interface.h b/include/sanitizer/lsan_interface.h index cdb3b39d..c8263233 100644 --- a/include/sanitizer/lsan_interface.h +++ b/include/sanitizer/lsan_interface.h @@ -23,7 +23,8 @@ extern "C" { // be treated as non-leaks. Disable/enable pairs can be nested. void __lsan_disable(); void __lsan_enable(); - + // The heap object into which p points will be treated as a non-leak. + void __lsan_ignore_object(const void *p); #ifdef __cplusplus } // extern "C" |