summaryrefslogtreecommitdiff
path: root/src/compiler_llvm/compilation_unit.cc
diff options
context:
space:
mode:
author TDYa127 <tdy@google.com> 2012-05-09 12:20:01 -0700
committer Shih-wei Liao <sliao@google.com> 2012-05-09 16:40:24 -0700
commita22ea0351a9ea781b14f05a7c0d7fde27e5fd9bb (patch)
tree31cc9d00462dc61706bd6bfec4e26b91f0e99d1e /src/compiler_llvm/compilation_unit.cc
parent2b43f3a12224bc688b859858991ec0ec7d9ea5f4 (diff)
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
Diffstat (limited to 'src/compiler_llvm/compilation_unit.cc')
-rw-r--r--src/compiler_llvm/compilation_unit.cc4
1 files changed, 3 insertions, 1 deletions
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