From a22ea0351a9ea781b14f05a7c0d7fde27e5fd9bb Mon Sep 17 00:00:00 2001 From: TDYa127 Date: Wed, 9 May 2012 12:20:01 -0700 Subject: Restore the logging of compilation progress on target device. Yesterday's removal of "fork" on the target compilation accidentally dropped the logging. Restoring it back here. Change-Id: I32c58ee85b81f443edd3313ccee3cf56227d5017 --- src/compiler_llvm/compilation_unit.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/compiler_llvm/compilation_unit.cc') diff --git a/src/compiler_llvm/compilation_unit.cc b/src/compiler_llvm/compilation_unit.cc index 10844b88a1..e43367019b 100644 --- a/src/compiler_llvm/compilation_unit.cc +++ b/src/compiler_llvm/compilation_unit.cc @@ -171,7 +171,9 @@ bool CompilationUnit::Materialize(size_t thread_count) { if (thread_count == 1) { llvm::raw_string_ostream str_os(elf_image_); - return MaterializeToFile(str_os, insn_set_); + bool success = MaterializeToFile(str_os, insn_set_); + LOG(INFO) << "Compilation Unit: " << elf_idx_ << (success ? " (done)" : " (failed)"); + return success; } // Prepare the pipe between parent process and child process -- cgit v1.2.3-59-g8ed1b