From: Benjamin Kramer Date: Sat, 19 Nov 2011 10:24:49 +0000 (+0000) Subject: Driver: Remove the signal number from the "command failed" diagnostic. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ecff7c80e5ce4ccb1d2765c234c88efafdc1a378;p=clang Driver: Remove the signal number from the "command failed" diagnostic. - 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 --- diff --git a/include/clang/Basic/DiagnosticDriverKinds.td b/include/clang/Basic/DiagnosticDriverKinds.td index b8c28f8366..fdf1e4a539 100644 --- a/include/clang/Basic/DiagnosticDriverKinds.td +++ b/include/clang/Basic/DiagnosticDriverKinds.td @@ -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< diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index 6873add198..feeeb049f5 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -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;