[lld] r345294 - Remove full stops from error messages for consistency.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 25 11:07:55 PDT 2018


Author: ruiu
Date: Thu Oct 25 11:07:55 2018
New Revision: 345294

URL: http://llvm.org/viewvc/llvm-project?rev=345294&view=rev
Log:
Remove full stops from error messages for consistency.

Modified:
    lld/trunk/ELF/Driver.cpp
    lld/trunk/test/ELF/aarch64-cortex-a53-843419-cli.s
    lld/trunk/test/ELF/arm-blx-v4t.s
    lld/trunk/test/ELF/mips-gnu-hash.s
    lld/trunk/test/ELF/ppc64-tocopt-option.s

Modified: lld/trunk/ELF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Driver.cpp?rev=345294&r1=345293&r2=345294&view=diff
==============================================================================
--- lld/trunk/ELF/Driver.cpp (original)
+++ lld/trunk/ELF/Driver.cpp Thu Oct 25 11:07:55 2018
@@ -279,13 +279,13 @@ static void checkOptions(opt::InputArgLi
   // The MIPS ABI as of 2016 does not support the GNU-style symbol lookup
   // table which is a relatively new feature.
   if (Config->EMachine == EM_MIPS && Config->GnuHash)
-    error("the .gnu.hash section is not compatible with the MIPS target.");
+    error("the .gnu.hash section is not compatible with the MIPS target");
 
   if (Config->FixCortexA53Errata843419 && Config->EMachine != EM_AARCH64)
-    error("--fix-cortex-a53-843419 is only supported on AArch64 targets.");
+    error("--fix-cortex-a53-843419 is only supported on AArch64 targets");
 
   if (Config->TocOptimize && Config->EMachine != EM_PPC64)
-      error("--toc-optimize is only supported on the PowerPC64 target.");
+    error("--toc-optimize is only supported on the PowerPC64 target");
 
   if (Config->Pie && Config->Shared)
     error("-shared and -pie may not be used together");
@@ -1617,7 +1617,7 @@ template <class ELFT> void LinkerDriver:
     // supports them.
     if (Config->ARMHasBlx == false)
       warn("lld uses blx instruction, no object with architecture supporting "
-           "feature detected.");
+           "feature detected");
   }
 
   // This adds a .comment section containing a version string. We have to add it

Modified: lld/trunk/test/ELF/aarch64-cortex-a53-843419-cli.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/aarch64-cortex-a53-843419-cli.s?rev=345294&r1=345293&r2=345294&view=diff
==============================================================================
--- lld/trunk/test/ELF/aarch64-cortex-a53-843419-cli.s (original)
+++ lld/trunk/test/ELF/aarch64-cortex-a53-843419-cli.s Thu Oct 25 11:07:55 2018
@@ -2,7 +2,7 @@
 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
 // RUN: not ld.lld %t -fix-cortex-a53-843419 -o /dev/null 2>&1 | FileCheck %s
 
-// CHECK: --fix-cortex-a53-843419 is only supported on AArch64 targets.
+// CHECK: --fix-cortex-a53-843419 is only supported on AArch64 targets
 .globl entry
 .text
         .quad 0

Modified: lld/trunk/test/ELF/arm-blx-v4t.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/arm-blx-v4t.s?rev=345294&r1=345293&r2=345294&view=diff
==============================================================================
--- lld/trunk/test/ELF/arm-blx-v4t.s (original)
+++ lld/trunk/test/ELF/arm-blx-v4t.s Thu Oct 25 11:07:55 2018
@@ -6,7 +6,7 @@
 // a thunk. At present we don't support v4t so we give a warning for unsupported
 // features.
 
-// CHECK: warning: lld uses blx instruction, no object with architecture supporting feature detected.
+// CHECK: warning: lld uses blx instruction, no object with architecture supporting feature detected
 
  .text
  .syntax unified

Modified: lld/trunk/test/ELF/mips-gnu-hash.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/mips-gnu-hash.s?rev=345294&r1=345293&r2=345294&view=diff
==============================================================================
--- lld/trunk/test/ELF/mips-gnu-hash.s (original)
+++ lld/trunk/test/ELF/mips-gnu-hash.s Thu Oct 25 11:07:55 2018
@@ -7,7 +7,7 @@
 # RUN: llvm-mc -filetype=obj -triple=mipsel-unknown-linux %s -o %t-el.o
 # RUN: not ld.lld -shared -hash-style=gnu %t-el.o -o /dev/null 2>&1 | FileCheck %s
 
-# CHECK: the .gnu.hash section is not compatible with the MIPS target.
+# CHECK: the .gnu.hash section is not compatible with the MIPS target
 
   .globl  __start
 __start:

Modified: lld/trunk/test/ELF/ppc64-tocopt-option.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/ppc64-tocopt-option.s?rev=345294&r1=345293&r2=345294&view=diff
==============================================================================
--- lld/trunk/test/ELF/ppc64-tocopt-option.s (original)
+++ lld/trunk/test/ELF/ppc64-tocopt-option.s Thu Oct 25 11:07:55 2018
@@ -3,7 +3,7 @@
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
 # RUN: not ld.lld %t --toc-optimize -o /dev/null 2>&1 | FileCheck %s
 
-# CHECK: error: --toc-optimize is only supported on the PowerPC64 target.
+# CHECK: error: --toc-optimize is only supported on the PowerPC64 target
 
          .global __start
          .type __start, at function




More information about the llvm-commits mailing list