]> granicus.if.org Git - clang/commit
Add -fsanitize=leak to driver options.
authorSergey Matveev <earthdok@google.com>
Mon, 27 May 2013 11:17:01 +0000 (11:17 +0000)
committerSergey Matveev <earthdok@google.com>
Mon, 27 May 2013 11:17:01 +0000 (11:17 +0000)
commit050309fdc6d8416b217f651141d5f391512b1041
treefeb5081da44817bce6ccf9925271f05b58a91ec2
parentb28e88c18ade461f54d0f2faefb1cacb209586e2
Add -fsanitize=leak to driver options.

If -fsanitize=leak is specified, link the program with the
LeakSanitizer runtime. Ignore this option when -fsanitize=address is specified,
because AddressSanitizer has this functionality built in.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182729 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Sanitizers.def
lib/Driver/SanitizerArgs.h
lib/Driver/Tools.cpp
test/Driver/fsanitize.c
test/Driver/sanitizer-ld.c