]> granicus.if.org Git - clang/commitdiff
Driver: Remove the signal number from the "command failed" diagnostic.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 19 Nov 2011 10:24:49 +0000 (10:24 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 19 Nov 2011 10:24:49 +0000 (10:24 +0000)
- With the current implementation of sys::Program this always printed "2".
- The command execution code will output the right number anyway (including the signal name).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144993 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticDriverKinds.td
lib/Driver/Driver.cpp

index b8c28f8366f6bc0c958bc1a83080f8ff995f229b..fdf1e4a539be2ac6d5a4ca8ad7fe3e91a1323da3 100644 (file)
@@ -62,7 +62,7 @@ def err_drv_clang_unsupported_opt_cxx_darwin_i386 : Error<
 def err_drv_command_failed : Error<
   "%0 command failed with exit code %1 (use -v to see invocation)">;
 def err_drv_command_signalled : Error<
-  "%0 command failed due to signal %1 (use -v to see invocation)">;
+  "%0 command failed due to signal (use -v to see invocation)">;
 def err_drv_invalid_mfloat_abi : Error<
   "invalid float ABI '%0'">;
 def err_drv_invalid_libcxx_deployment : Error<
index 6873add1982e8351e9b2dad9ff7c05c37e3b82b3..feeeb049f55dec45e259a2a48c3a128dc855f692 100644 (file)
@@ -523,7 +523,7 @@ int Driver::ExecuteCompilation(const Compilation &C,
     // FIXME: See FIXME above regarding result code interpretation.
     if (Res < 0)
       Diag(clang::diag::err_drv_command_signalled)
-        << FailingTool.getShortName() << -Res;
+        << FailingTool.getShortName();
     else
       Diag(clang::diag::err_drv_command_failed)
         << FailingTool.getShortName() << Res;