summaryrefslogtreecommitdiff
path: root/lib/msan/msan_report.cc
diff options
context:
space:
mode:
authorSergey Matveev <earthdok@google.com>2013-09-03 13:31:03 +0000
committerSergey Matveev <earthdok@google.com>2013-09-03 13:31:03 +0000
commit650c7d44b659ddfb4af471dc2ad79a727b7de939 (patch)
treedb9f0ace7d8f6d95b8f054f97c7cdc40ebe2d9a6 /lib/msan/msan_report.cc
parent68c016aea0b61f649b9d9ba65c7d7217e0c0f6cb (diff)
[lsan] Colorize LSan reports.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189804 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/msan/msan_report.cc')
-rw-r--r--lib/msan/msan_report.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/msan/msan_report.cc b/lib/msan/msan_report.cc
index d8a699696..b1cfe87b4 100644
--- a/lib/msan/msan_report.cc
+++ b/lib/msan/msan_report.cc
@@ -25,16 +25,6 @@ using namespace __sanitizer;
namespace __msan {
-static bool PrintsToTtyCached() {
- static int cached = 0;
- static bool prints_to_tty;
- if (!cached) { // Ok wrt threads since we are printing only from one thread.
- prints_to_tty = PrintsToTty();
- cached = 1;
- }
- return prints_to_tty;
-}
-
class Decorator: private __sanitizer::AnsiColorDecorator {
public:
Decorator() : __sanitizer::AnsiColorDecorator(PrintsToTtyCached()) { }
@@ -120,5 +110,4 @@ void ReportAtExitStatistics() {
Printf("%s", d.End());
}
-
} // namespace __msan