r198922 - reapply r198858: Disable LeakSanitizer in TableGen binaries, see PR18325; this time LeakSanitizerIsTurnedOffForTheCurrentProcess is used instead of __lsan_is_turned_off
Kostya Serebryany
kcc at google.com
Fri Jan 10 00:05:42 PST 2014
Author: kcc
Date: Fri Jan 10 02:05:42 2014
New Revision: 198922
URL: http://llvm.org/viewvc/llvm-project?rev=198922&view=rev
Log:
reapply r198858: Disable LeakSanitizer in TableGen binaries, see PR18325; this time LeakSanitizerIsTurnedOffForTheCurrentProcess is used instead of __lsan_is_turned_off
Modified:
cfe/trunk/utils/TableGen/TableGen.cpp
Modified: cfe/trunk/utils/TableGen/TableGen.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/TableGen/TableGen.cpp?rev=198922&r1=198921&r2=198922&view=diff
==============================================================================
--- cfe/trunk/utils/TableGen/TableGen.cpp (original)
+++ cfe/trunk/utils/TableGen/TableGen.cpp Fri Jan 10 02:05:42 2014
@@ -263,3 +263,10 @@ int main(int argc, char **argv) {
return TableGenMain(argv[0], &ClangTableGenMain);
}
+
+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"
More information about the cfe-commits
mailing list