aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/TableGen/TableGen.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-01-09 19:40:55 +0000
committerAlp Toker <alp@nuanti.com>2014-01-09 19:40:55 +0000
commit2a2a354ee94b1daf20ebca8ec47f54c3d55cc02e (patch)
tree03ad95d3bfead75bb263d65c9f050f8d142d308a /llvm/utils/TableGen/TableGen.cpp
parent15b27b97b7d79624603278d1705e9eafcc2d86b5 (diff)
downloadllvm-2a2a354ee94b1daf20ebca8ec47f54c3d55cc02e.zip
llvm-2a2a354ee94b1daf20ebca8ec47f54c3d55cc02e.tar.gz
llvm-2a2a354ee94b1daf20ebca8ec47f54c3d55cc02e.tar.bz2
Revert "Disable LeakSanitizer in TableGen binaries, see PR18325"
To declare or define reserved identifers is undefined behaviour in standard C++. This needs to be addressed in compiler-rt before it can be used in LLVM. See the list discussion for details. This reverts commit r198858. llvm-svn: 198884
Diffstat (limited to 'llvm/utils/TableGen/TableGen.cpp')
-rw-r--r--llvm/utils/TableGen/TableGen.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/utils/TableGen/TableGen.cpp b/llvm/utils/TableGen/TableGen.cpp
index 6db54a90..b5c3ca76 100644
--- a/llvm/utils/TableGen/TableGen.cpp
+++ b/llvm/utils/TableGen/TableGen.cpp
@@ -180,10 +180,3 @@ 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"