]> granicus.if.org Git - clang/commitdiff
Tidy up the no-external-assembler diag
authorAlp Toker <alp@nuanti.com>
Fri, 22 Nov 2013 08:27:46 +0000 (08:27 +0000)
committerAlp Toker <alp@nuanti.com>
Fri, 22 Nov 2013 08:27:46 +0000 (08:27 +0000)
Diags aren't usually in the first person, and 'windows' isn't the correct
product spelling to use in prose. Sidestep issues completely by making this
error message platform-neutral.

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

include/clang/Basic/DiagnosticDriverKinds.td
lib/Driver/WindowsToolChain.cpp
test/Driver/no-integrated-as-win.c

index 76d8c4aa7d66f72ed6563c9943ce90ec1c546d1f..b48980778c46c291a57f7284229898b3a142e300 100644 (file)
@@ -35,8 +35,8 @@ def err_drv_output_argument_with_multiple_files : Error<
   "cannot specify -o when generating multiple output files">;
 def err_drv_out_file_argument_with_multiple_sources : Error<
   "cannot specify '%0%1' when compiling multiple source files">;
-def err_no_external_windows_assembler : Error<
-  "there is no external assembler we can use on windows">;
+def err_no_external_assembler : Error<
+  "there is no external assembler that can be used on this platform">;
 def err_drv_unable_to_remove_file : Error<
   "unable to remove file: %0">;
 def err_drv_command_failure : Error<
index db36f1eba713e6d6d15036a80087f0b4de94ae26..2b6320ac12e33418c816d36f7a53da8acbeaa332 100644 (file)
@@ -45,7 +45,7 @@ Tool *Windows::buildLinker() const {
 Tool *Windows::buildAssembler() const {
   if (getTriple().getEnvironment() == llvm::Triple::MachO)
     return new tools::darwin::Assemble(*this);
-  getDriver().Diag(clang::diag::err_no_external_windows_assembler);
+  getDriver().Diag(clang::diag::err_no_external_assembler);
   return NULL;
 }
 
index 1ab2480c5d3833f366e0641d4bb52278a837cc72..8f590a0901688fbf5d38e095e967a481f5d04370 100644 (file)
@@ -1,5 +1,5 @@
 // RUN: %clang -target x86_64-pc-win32 -### -no-integrated-as %s -c 2>&1 | FileCheck %s
-// CHECK: there is no external assembler we can use on windows
+// CHECK: there is no external assembler that can be used on this platform
 
 // But there is for mingw.  The source file should only be mentioned once for
 // the compile step.