diff options
| author | Sergey Matveev <earthdok@google.com> | 2013-12-05 12:04:51 +0000 |
|---|---|---|
| committer | Sergey Matveev <earthdok@google.com> | 2013-12-05 12:04:51 +0000 |
| commit | 9be70fbda9e3efbb33a285f600e13c16d41f59e1 (patch) | |
| tree | 5c642e3b1c16bedc44ffb7c408f057b0f9f491d5 /compiler-rt/lib/sanitizer_common/sanitizer_coverage.cc | |
| parent | a611c0f40508a5d74ebbfc4e658e2ec30735dada (diff) | |
| download | bcm5719-llvm-9be70fbda9e3efbb33a285f600e13c16d41f59e1.tar.gz bcm5719-llvm-9be70fbda9e3efbb33a285f600e13c16d41f59e1.zip | |
[sanitizer] Introduce VReport and VPrintf macros and use them in sanitizer code.
Instead of "if (common_flags()->verbosity) Report(...)" we now have macros.
llvm-svn: 196497
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_coverage.cc')
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_coverage.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_coverage.cc b/compiler-rt/lib/sanitizer_common/sanitizer_coverage.cc index 9e7a0f8b95f..0e928e0cba6 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_coverage.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_coverage.cc @@ -96,8 +96,7 @@ void CovDump() { uptr fd = OpenFile(path.data(), true); internal_write(fd, offsets.data(), offsets.size() * sizeof(u32)); internal_close(fd); - if (common_flags()->verbosity) - Report(" CovDump: %s: %zd PCs written\n", path.data(), vb - old_vb); + VReport(1, " CovDump: %s: %zd PCs written\n", path.data(), vb - old_vb); } } #endif // !SANITIZER_WINDOWS |

