aboutsummaryrefslogtreecommitdiff
path: root/tools/llvmc/llvmc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/llvmc/llvmc.cpp')
-rw-r--r--tools/llvmc/llvmc.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/llvmc/llvmc.cpp b/tools/llvmc/llvmc.cpp
index 496eaa4194..f2e7c1fb37 100644
--- a/tools/llvmc/llvmc.cpp
+++ b/tools/llvmc/llvmc.cpp
@@ -355,9 +355,10 @@ int main(int argc, char **argv) {
}
// Tell the driver to do its thing
- int result = CD->execute(InpList, sys::Path(OutputFilename));
+ std::string ErrMsg;
+ int result = CD->execute(InpList, sys::Path(OutputFilename), ErrMsg);
if (result != 0) {
- throw std::string("Error executing actions. Terminated.");
+ std::cerr << argv[0] << ": " << ErrMsg << '\n';
return result;
}