search for: __lsan_is_turned_off

Displaying 5 results from an estimated 5 matches for "__lsan_is_turned_off".

2013 Dec 26
3
[LLVMdev] [cfe-dev] lsan for LLVM bootstrap; leaks in TableGen
On Thu, Dec 26, 2013 at 2:40 AM, Kostya Serebryany <kcc at google.com> wrote: > Like this? > > +extern "C" { > +// Disable LeakSanitizer, see http://llvm.org/bugs/show_bug.cgi?id=18325. > We don't often reference bugs in comments. I would give a brief summary in the text of the comment, and mention the bug in the commit log. -------------- next part
2014 Jan 09
2
[LLVMdev] [cfe-dev] lsan for LLVM bootstrap; leaks in TableGen
...;t often reference bugs in comments. I would give a brief summary in the text of the comment, and mention the bug in the commit log. > This? > > +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" [ Sorry to be joining the conversation late ] What is the reasoning behind having them define a function to disable lsan, rather than calling __lsan_d...
2013 Dec 25
3
[LLVMdev] lsan for LLVM bootstrap; leaks in TableGen
...s/TableGen/TableGen.cpp =================================================================== --- utils/TableGen/TableGen.cpp (revision 198007) +++ utils/TableGen/TableGen.cpp (working copy) @@ -180,3 +180,7 @@ return TableGenMain(argv[0], &LLVMTableGenMain); } + +extern "C" { +int __lsan_is_turned_off() { return 1; } +} // extern "C" Index: tools/clang/utils/TableGen/TableGen.cpp =================================================================== --- tools/clang/utils/TableGen/TableGen.cpp (revision 198007) +++ tools/clang/utils/TableGen/TableGen.cpp (working copy) @@ -248,3 +...
2013 Dec 25
2
[LLVMdev] [cfe-dev] lsan for LLVM bootstrap; leaks in TableGen
...== > > --- utils/TableGen/TableGen.cpp (revision 198007) > > +++ utils/TableGen/TableGen.cpp (working copy) > > @@ -180,3 +180,7 @@ > > > > return TableGenMain(argv[0], &LLVMTableGenMain); > > } > > + > > +extern "C" { > > +int __lsan_is_turned_off() { return 1; } > > +} // extern "C" > > Index: tools/clang/utils/TableGen/TableGen.cpp > > =================================================================== > > --- tools/clang/utils/TableGen/TableGen.cpp (revision 198007) > > +++ tools/clang/utils/Ta...
2013 Dec 26
2
[LLVMdev] [cfe-dev] lsan for LLVM bootstrap; leaks in TableGen
...t; > >> > @@ -180,3 +180,7 @@ >> > >> > >> > >> > return TableGenMain(argv[0], &LLVMTableGenMain); >> > >> > } >> > >> > + >> > >> > +extern "C" { >> > >> > +int __lsan_is_turned_off() { return 1; } >> > >> > +} // extern "C" >> > >> > Index: tools/clang/utils/TableGen/TableGen.cpp >> > >> > =================================================================== >> > >> > --- tools/clang/utils/TableG...