aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-06-27 09:35:50 +0000
committerAlexey Samsonov <samsonov@google.com>2013-06-27 09:35:50 +0000
commit9fbfd96608070eb71e11fbfe42ec9e84016429ae (patch)
tree413cbfe89caf16e1b9e280cd87d1f340754c7bb9 /include
parentc11d3034b22be77d9c7f175350ea67a576ef375e (diff)
downloadcompiler-rt-9fbfd96608070eb71e11fbfe42ec9e84016429ae.tar.gz
[LSan] Add the way to disable LSan at link time
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185066 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/sanitizer/lsan_interface.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sanitizer/lsan_interface.h b/include/sanitizer/lsan_interface.h
index c82632335..97a88a502 100644
--- a/include/sanitizer/lsan_interface.h
+++ b/include/sanitizer/lsan_interface.h
@@ -25,6 +25,10 @@ extern "C" {
void __lsan_enable();
// The heap object into which p points will be treated as a non-leak.
void __lsan_ignore_object(const void *p);
+ // The user may optionally provide this function to disallow leak checking
+ // for the program it is linked into. Note: this function may be called late,
+ // after all the global destructors.
+ int __lsan_is_turned_off();
#ifdef __cplusplus
} // extern "C"