[lld] r332658 - Fix typo in error message.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu May 17 13:25:35 PDT 2018


Author: ruiu
Date: Thu May 17 13:25:35 2018
New Revision: 332658

URL: http://llvm.org/viewvc/llvm-project?rev=332658&view=rev
Log:
Fix typo in error message.

Modified:
    lld/trunk/ELF/InputFiles.cpp
    lld/trunk/test/ELF/lto/thinlto-object-suffix-replace.ll

Modified: lld/trunk/ELF/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.cpp?rev=332658&r1=332657&r2=332658&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Thu May 17 13:25:35 2018
@@ -1247,7 +1247,7 @@ std::string elf::replaceThinLTOSuffix(St
 
   if (!Path.endswith(Suffix)) {
     error("-thinlto-object-suffix-replace=" + Suffix + ";" + Repl +
-          " was given, but " + Path + " does not ends with the suffix");
+          " was given, but " + Path + " does not end with the suffix");
     return "";
   }
   return (Path.drop_back(Suffix.size()) + Repl).str();

Modified: lld/trunk/test/ELF/lto/thinlto-object-suffix-replace.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/thinlto-object-suffix-replace.ll?rev=332658&r1=332657&r2=332658&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/thinlto-object-suffix-replace.ll (original)
+++ lld/trunk/test/ELF/lto/thinlto-object-suffix-replace.ll Thu May 17 13:25:35 2018
@@ -34,7 +34,7 @@
 ; RUN: not ld.lld -m elf_x86_64 --plugin-opt=thinlto-index-only \
 ; RUN: --plugin-opt=thinlto-object-suffix-replace=".abc;.o" -shared %t1.thinlink.bc \
 ; RUN: -o %t3 2>&1 | FileCheck %s --check-prefix=ERR2
-; ERR2: error: -thinlto-object-suffix-replace=.abc;.o was given, but {{.*}} does not ends with the suffix
+; ERR2: error: -thinlto-object-suffix-replace=.abc;.o was given, but {{.*}} does not end with the suffix
 
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"




More information about the llvm-commits mailing list