diff options
author | Sergey Matveev <earthdok@google.com> | 2014-05-12 14:27:36 +0000 |
---|---|---|
committer | Sergey Matveev <earthdok@google.com> | 2014-05-12 14:27:36 +0000 |
commit | 5b1946bd1461d64b7f4cd036504b0d10314824a1 (patch) | |
tree | a9ed0c795354026ca22c4dc8d4c9ef1d15368e53 /lib/sanitizer_common/sanitizer_flags.cc | |
parent | 16b90715795dc2473c4b76fcf84e51a390dd684d (diff) | |
download | compiler-rt-5b1946bd1461d64b7f4cd036504b0d10314824a1.tar.gz |
[asan] Move the "coverage" flag to common flags.
The implementation lives in sanitizer_common and will need to access that flag.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208566 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_flags.cc')
-rw-r--r-- | lib/sanitizer_common/sanitizer_flags.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_flags.cc b/lib/sanitizer_common/sanitizer_flags.cc index cb287dfe7..86d70124e 100644 --- a/lib/sanitizer_common/sanitizer_flags.cc +++ b/lib/sanitizer_common/sanitizer_flags.cc @@ -54,6 +54,7 @@ void SetCommonFlagsDefaults(CommonFlags *f) { f->color = "auto"; f->legacy_pthread_cond = false; f->intercept_tls_get_addr = false; + f->coverage = false; } void ParseCommonFlagsFromString(CommonFlags *f, const char *str) { @@ -122,6 +123,9 @@ void ParseCommonFlagsFromString(CommonFlags *f, const char *str) { ParseFlag(str, &f->mmap_limit_mb, "mmap_limit_mb", "Limit the amount of mmap-ed memory (excluding shadow) in Mb; " "not a user-facing flag, used mosly for testing the tools"); + ParseFlag(str, &f->coverage, "coverage", + "If set, coverage information will be dumped at program shutdown (if the " + "coverage instrumentation was enabled at compile time)."); // Do a sanity check for certain flags. if (f->malloc_context_size < 1) |