summaryrefslogtreecommitdiffstats
path: root/compiler-rt/include/sanitizer/lsan_interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/include/sanitizer/lsan_interface.h')
-rw-r--r--compiler-rt/include/sanitizer/lsan_interface.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/include/sanitizer/lsan_interface.h b/compiler-rt/include/sanitizer/lsan_interface.h
index 8fb8e756da2..1f2e58909b4 100644
--- a/compiler-rt/include/sanitizer/lsan_interface.h
+++ b/compiler-rt/include/sanitizer/lsan_interface.h
@@ -64,6 +64,8 @@ extern "C" {
// for the program it is linked into (if the return value is non-zero). This
// function must be defined as returning a constant value; any behavior beyond
// that is unsupported.
+ // To avoid dead stripping, you may need to define this function with
+ // __attribute__((used))
int __lsan_is_turned_off();
// This function may be optionally provided by the user and should return
OpenPOWER on IntegriCloud