diff options
author | Kostya Serebryany <kcc@google.com> | 2014-01-10 08:05:42 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2014-01-10 08:05:42 +0000 |
commit | ab39685c7750380a6d727e77828723d10e583958 (patch) | |
tree | 16914ac15484a9a3be8cbad2108f307df5bde574 | |
parent | 7ff05025b01e33d58cecd376d4fc9a73afe9d2a6 (diff) | |
download | llvm-ab39685c7750380a6d727e77828723d10e583958.tar.gz llvm-ab39685c7750380a6d727e77828723d10e583958.tar.bz2 llvm-ab39685c7750380a6d727e77828723d10e583958.tar.xz |
reapply r198858: Disable LeakSanitizer in TableGen binaries, see PR18325; this time LeakSanitizerIsTurnedOffForTheCurrentProcess is used instead of __lsan_is_turned_off
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198922 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | utils/TableGen/TableGen.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/TableGen/TableGen.cpp b/utils/TableGen/TableGen.cpp index b5c3ca760d..669127c3b0 100644 --- a/utils/TableGen/TableGen.cpp +++ b/utils/TableGen/TableGen.cpp @@ -180,3 +180,10 @@ int main(int argc, char **argv) { return TableGenMain(argv[0], &LLVMTableGenMain); } + +extern "C" { +// Disable LeakSanitizer for this binary as it has too many leaks that are not +// very interesting to fix. LeakSanitizerIsTurnedOffForTheCurrentProcess is +// explained in compiler-rt/include/sanitizer/lsan_interface.h +int LeakSanitizerIsTurnedOffForTheCurrentProcess() { return 1; } +} // extern "C" |