llvm.org GIT mirror llvm / 3846ce9
replace LeakSanitizerIsTurnedOffForTheCurrentProcess with __lsan_is_turned_off, but this time hide it under __has_feature(address_sanitizer); also include <sanitizer/lsan_interface.h> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199303 91177308-0d34-0410-b5e6-96231b3b80d8 Kostya Serebryany 6 years ago
1 changed file(s) with 7 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
180180 return TableGenMain(argv[0], &LLVMTableGenMain);
181181 }
182182
183 extern "C" {
183 #ifdef __has_feature
184 #if __has_feature(address_sanitizer)
185 #include
184186 // Disable LeakSanitizer for this binary as it has too many leaks that are not
185 // very interesting to fix. LeakSanitizerIsTurnedOffForTheCurrentProcess is
186 // explained in compiler-rt/include/sanitizer/lsan_interface.h
187 int LeakSanitizerIsTurnedOffForTheCurrentProcess() { return 1; }
188 } // extern "C"
187 // very interesting to fix. See compiler-rt/include/sanitizer/lsan_interface.h .
188 int __lsan_is_turned_off() { return 1; }
189 #endif // __has_feature(address_sanitizer)
190 #endif // defined(__has_feature)