[llvm] r198922 - reapply r198858: Disable LeakSanitizer in TableGen binaries, see PR18325; this time LeakSanitizerIsTurnedOffForTheCurrentProcess is used instead of __lsan_is_turned_off

Alp Toker alp at nuanti.com
Fri Jan 10 03:22:12 PST 2014


Thanks Kostya

On 10/01/2014 08:05, Kostya Serebryany wrote:
> 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:
>      llvm/trunk/utils/TableGen/TableGen.cpp
>
> Modified: llvm/trunk/utils/TableGen/TableGen.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/TableGen.cpp?rev=198922&r1=198921&r2=198922&view=diff
> ==============================================================================
> --- llvm/trunk/utils/TableGen/TableGen.cpp (original)
> +++ llvm/trunk/utils/TableGen/TableGen.cpp Fri Jan 10 02:05:42 2014
> @@ -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"
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

-- 
http://www.nuanti.com
the browser experts




More information about the llvm-commits mailing list