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_libignore.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_libignore.cc')
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_libignore.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_libignore.cc b/compiler-rt/lib/sanitizer_common/sanitizer_libignore.cc index 0f193a13025..a0bb871b23b 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_libignore.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_libignore.cc @@ -76,9 +76,10 @@ void LibIgnore::OnLibraryLoaded(const char *name) { loaded = true; if (lib->loaded) continue; - if (common_flags()->verbosity) - Report("Matched called_from_lib suppression '%s' against library" - " '%s'\n", lib->templ, module.data()); + VReport(1, + "Matched called_from_lib suppression '%s' against library" + " '%s'\n", + lib->templ, module.data()); lib->loaded = true; lib->name = internal_strdup(module.data()); const uptr idx = atomic_load(&loaded_count_, memory_order_relaxed); |

