From e11473fe06f0d0c0e8e42fa5f6282a70904b5ec6 Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Tue, 20 Jan 2015 13:21:20 +0000 Subject: [asan] Allow changing verbosity in activation flags. This change removes some debug output in asan_flags.cc that was reading the verbosity level before all the flags were parsed. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@226566 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/sanitizer_common/sanitizer_common_libcdep.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sanitizer_common/sanitizer_common_libcdep.cc') diff --git a/lib/sanitizer_common/sanitizer_common_libcdep.cc b/lib/sanitizer_common/sanitizer_common_libcdep.cc index 8c2d3f088..e357e1cbb 100644 --- a/lib/sanitizer_common/sanitizer_common_libcdep.cc +++ b/lib/sanitizer_common/sanitizer_common_libcdep.cc @@ -75,7 +75,7 @@ void BackgroundThread(void *arg) { while (true) { SleepForMillis(100); uptr current_rss_mb = GetRSS() >> 20; - if (common_flags()->verbosity) { + if (Verbosity()) { // If RSS has grown 10% since last time, print some information. if (prev_reported_rss * 11 / 10 < current_rss_mb) { Printf("%s: RSS: %zdMb\n", SanitizerToolName, current_rss_mb); -- cgit v1.2.3