commit 1e87df9dba1237463211f517815189cb3322dafc
parent c71cd0fa8b0c69f4cbb099cebe968e7679fd684e
Author: Kyle Milz <kyle@windows.krwm.net>
Date: Fri, 6 Jan 2017 19:13:25 -0800
inst: remove iostream from log.h
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/inst_log.h b/inst_log.h
@@ -1,7 +1,6 @@
#ifndef _INST_LOG_H
#define _INST_LOG_H
-#include <iostream>
#include <llvm/Support/raw_ostream.h>
#include <llvm/Support/FileSystem.h> // llvm::sys::fs::F_Append
#include <sstream>
@@ -33,8 +32,8 @@ class InstrumentLogger : public std::ostream
std::error_code m_ec;
m_out = new llvm::raw_fd_ostream("citrun.log", m_ec, llvm::sys::fs::F_Append);
if (m_ec.value()) {
- std::cerr << "Can't open citrun.log: " << m_ec.message();
m_out = &llvm::errs();
+ *m_out << "Can't open citrun.log: " << m_ec.message();
}
}