summaryrefslogtreecommitdiffstats
path: root/libcxx/utils/google-benchmark/src/log.cc
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-11-05 00:30:27 +0000
committerEric Fiselier <eric@efcs.ca>2016-11-05 00:30:27 +0000
commitfbc9ff244c0da5a8e4e566b70a8fec3a50d88532 (patch)
tree4143967ceb2630a5493a109e7a41e237bb34e422 /libcxx/utils/google-benchmark/src/log.cc
parent3a6f331d2d044e15f2e3b54bd776ba882ad06e52 (diff)
downloadbcm5719-llvm-fbc9ff244c0da5a8e4e566b70a8fec3a50d88532.tar.gz
bcm5719-llvm-fbc9ff244c0da5a8e4e566b70a8fec3a50d88532.zip
Upgrade in-tree google benchmark to v1.1
llvm-svn: 286029
Diffstat (limited to 'libcxx/utils/google-benchmark/src/log.cc')
-rw-r--r--libcxx/utils/google-benchmark/src/log.cc40
1 files changed, 0 insertions, 40 deletions
diff --git a/libcxx/utils/google-benchmark/src/log.cc b/libcxx/utils/google-benchmark/src/log.cc
deleted file mode 100644
index b660309d324..00000000000
--- a/libcxx/utils/google-benchmark/src/log.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-#include "log.h"
-
-#include <iostream>
-
-namespace benchmark {
-namespace internal {
-
-int& LoggingLevelImp() {
- static int level = 0;
- return level;
-}
-
-void SetLogLevel(int value) {
- LoggingLevelImp() = value;
-}
-
-int GetLogLevel() {
- return LoggingLevelImp();
-}
-
-class NullLogBuffer : public std::streambuf
-{
-public:
- int overflow(int c) {
- return c;
- }
-};
-
-std::ostream& GetNullLogInstance() {
- static NullLogBuffer log_buff;
- static std::ostream null_log(&log_buff);
- return null_log;
-}
-
-std::ostream& GetErrorLogInstance() {
- return std::clog;
-}
-
-} // end namespace internal
-} // end namespace benchmark \ No newline at end of file
OpenPOWER on IntegriCloud