Direct UT output to PPULLVMRecompiler.log

This commit is contained in:
S Gopal Rajagopal 2014-11-21 00:04:59 +05:30
parent 6661018691
commit 5addbcbbb0
2 changed files with 22 additions and 16 deletions

View file

@ -82,8 +82,6 @@ Compiler::Compiler(RecompilationEngine & recompilation_engine, const Executable
InitRotateMask();
s_rotate_mask_inited = true;
}
RunAllTests();
}
Compiler::~Compiler() {
@ -4884,9 +4882,7 @@ RecompilationEngine::RecompilationEngine()
: ThreadBase("PPU Recompilation Engine")
, m_next_ordinal(0)
, m_compiler(*this, ExecutionEngine::ExecuteFunction, ExecutionEngine::ExecuteTillReturn) {
std::string error;
m_log = new raw_fd_ostream("PPULLVMRecompiler.log", error, sys::fs::F_Text);
m_log->SetUnbuffered();
m_compiler.RunAllTests();
}
RecompilationEngine::~RecompilationEngine() {
@ -4943,6 +4939,12 @@ void RecompilationEngine::NotifyTrace(ExecutionTrace * execution_trace) {
}
raw_fd_ostream & RecompilationEngine::Log() {
if (!m_log) {
std::string error;
m_log = new raw_fd_ostream("PPULLVMRecompiler.log", error, sys::fs::F_Text);
m_log->SetUnbuffered();
}
return *m_log;
}