summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/TableGen.cpp
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2014-01-09 09:26:26 +0000
committerKostya Serebryany <kcc@google.com>2014-01-09 09:26:26 +0000
commitbc60254543dc83245c4d5fb76d900cd1fecbf65a (patch)
treeb098b07a3e3e59ad68f425b6887039d839157960 /llvm/utils/TableGen/TableGen.cpp
parentba4acedb691a7748353d630902cb13afe9897f45 (diff)
downloadbcm5719-llvm-bc60254543dc83245c4d5fb76d900cd1fecbf65a.tar.gz
bcm5719-llvm-bc60254543dc83245c4d5fb76d900cd1fecbf65a.zip
Disable LeakSanitizer in TableGen binaries, see PR18325
llvm-svn: 198858
Diffstat (limited to 'llvm/utils/TableGen/TableGen.cpp')
-rw-r--r--llvm/utils/TableGen/TableGen.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/TableGen.cpp b/llvm/utils/TableGen/TableGen.cpp
index b5c3ca760db..6db54a9006d 100644
--- a/llvm/utils/TableGen/TableGen.cpp
+++ b/llvm/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. __lsan_is_turned_off is explained in
+// compiler-rt/include/sanitizer/lsan_interface.h
+int __lsan_is_turned_off() { return 1; }
+} // extern "C"
OpenPOWER on IntegriCloud