commit | 27b35101c2323e96fbb4df41b0de0eed468f6fa9 | [log] [tgz] |
---|---|---|
author | Stephen Hines <srhines@google.com> | Wed May 11 17:58:48 2011 -0700 |
committer | Stephen Hines <srhines@google.com> | Wed May 11 17:58:48 2011 -0700 |
tree | a5ad5c2594b2ae6be945148f31959bd1becc53f6 | |
parent | bbcef8ad069ee33c3bfc52dcd1bd6e1a7633e1f9 [diff] [blame] |
Log LLVM error messages in libbcc. Change-Id: I97f1e73f28c326c5df8a3cfca2bb50692ce32999
diff --git a/lib/ExecutionEngine/Script.cpp b/lib/ExecutionEngine/Script.cpp index 8ee60c9..cc9801a 100644 --- a/lib/ExecutionEngine/Script.cpp +++ b/lib/ExecutionEngine/Script.cpp
@@ -178,7 +178,11 @@ } #endif - return internalCompile(); + int status = internalCompile(); + if (status != 0) { + LOGE("LLVM error message: %s\n", getCompilerErrorMessage()); + } + return status; }