summaryrefslogtreecommitdiff
path: root/src/compiler_llvm/compilation_unit.cc
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2012-04-20 18:48:18 -0700
committer Elliott Hughes <enh@google.com> 2012-04-20 18:57:19 -0700
commit7b9d996e4cd7d154bb1a244d67139aff0c363cf2 (patch)
treea9dabe8f910b4b8bf29c2f4285d860995e25f58d /src/compiler_llvm/compilation_unit.cc
parent934100aea5a0f498c17e2c4a1fd0193af1557b42 (diff)
Tidy up some C-isms.
Change-Id: I53b457cab9067369320457549071fc3e4c23c81b
Diffstat (limited to 'src/compiler_llvm/compilation_unit.cc')
-rw-r--r--src/compiler_llvm/compilation_unit.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/compiler_llvm/compilation_unit.cc b/src/compiler_llvm/compilation_unit.cc
index 9c1f8d0699..166d2f610b 100644
--- a/src/compiler_llvm/compilation_unit.cc
+++ b/src/compiler_llvm/compilation_unit.cc
@@ -205,7 +205,7 @@ class ScopedTempFile {
};
bool CompilationUnit::Materialize() {
- const std::string tmp_file = "/tmp/art-llvm-XXXXXX";
+ const std::string tmp_file("/tmp/art-llvm-XXXXXX");
// Prepare the input
ScopedTempFile input(tmp_file);
@@ -238,8 +238,7 @@ bool CompilationUnit::Materialize() {
insn_set_)));
} else {
if (pid < 0) {
- LOG(FATAL) << "Failed to fork a process to do the compilation: "
- << strerror(errno);
+ PLOG(FATAL) << "Failed to fork a process to do the compilation";
}
// Free the resources