[lld] r263240 - This reverts the r263125

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 11 06:43:02 PST 2016


Author: grimar
Date: Fri Mar 11 08:43:02 2016
New Revision: 263240

URL: http://llvm.org/viewvc/llvm-project?rev=263240&view=rev
Log:
This reverts the r263125
It was discussed to make all messages be 
lowercase to be consistent with clang.
(also reverts the r263128 which fixed 
build bot fail after r263125)

Original commit message:
[ELF] - Consistent spelling for error/warning messages

Previously error and warnings were not consistent in lld.
Some of them started from lowercase letter, others from
uppercase. Also there was one or two which had a dot at the end.
This patch changes all messages to start from uppercase letter if
they were not before.

Differential revision: http://reviews.llvm.org/D18045

Modified:
    lld/trunk/ELF/Driver.cpp
    lld/trunk/ELF/DriverUtils.cpp
    lld/trunk/ELF/InputFiles.cpp
    lld/trunk/ELF/LinkerScript.cpp
    lld/trunk/ELF/OutputSections.cpp
    lld/trunk/ELF/SymbolTable.cpp
    lld/trunk/ELF/Target.cpp
    lld/trunk/ELF/Writer.cpp
    lld/trunk/test/ELF/basic.s
    lld/trunk/test/ELF/conflict.s
    lld/trunk/test/ELF/driver.test
    lld/trunk/test/ELF/duplicate-internal.s
    lld/trunk/test/ELF/invalid-elf.test
    lld/trunk/test/ELF/invalid-linkerscript.test
    lld/trunk/test/ELF/libsearch.s
    lld/trunk/test/ELF/linkerscript.s
    lld/trunk/test/ELF/lto/duplicated.ll
    lld/trunk/test/ELF/sysroot.s
    lld/trunk/test/ELF/tls-static.s
    lld/trunk/test/ELF/undef-start.s
    lld/trunk/test/ELF/undef.s

Modified: lld/trunk/ELF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Driver.cpp?rev=263240&r1=263239&r2=263240&view=diff
==============================================================================
--- lld/trunk/ELF/Driver.cpp (original)
+++ lld/trunk/ELF/Driver.cpp Fri Mar 11 08:43:02 2016
@@ -92,7 +92,7 @@ void LinkerDriver::addFile(StringRef Pat
   using namespace llvm::sys::fs;
   log(Path);
   auto MBOrErr = MemoryBuffer::getFile(Path);
-  if (error(MBOrErr, "Cannot open " + Path))
+  if (error(MBOrErr, "cannot open " + Path))
     return;
   std::unique_ptr<MemoryBuffer> &MB = *MBOrErr;
   MemoryBufferRef MBRef = MB->getMemBufferRef();
@@ -312,7 +312,7 @@ void LinkerDriver::createFiles(opt::Inpu
   }
 
   if (Files.empty() && !HasError)
-    error("No input files");
+    error("no input files.");
 }
 
 template <class ELFT> static void initSymbols() {

Modified: lld/trunk/ELF/DriverUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/DriverUtils.cpp?rev=263240&r1=263239&r2=263240&view=diff
==============================================================================
--- lld/trunk/ELF/DriverUtils.cpp (original)
+++ lld/trunk/ELF/DriverUtils.cpp Fri Mar 11 08:43:02 2016
@@ -67,15 +67,15 @@ opt::InputArgList elf::parseArgs(llvm::B
   // Parse options and then do error checking.
   opt::InputArgList Args = Table.ParseArgs(Vec, MissingIndex, MissingCount);
   if (MissingCount)
-    error(Twine("Missing arg value for \"") + Args.getArgString(MissingIndex) +
+    error(Twine("missing arg value for \"") + Args.getArgString(MissingIndex) +
           "\", expected " + Twine(MissingCount) +
           (MissingCount == 1 ? " argument.\n" : " arguments"));
 
   iterator_range<opt::arg_iterator> Unknowns = Args.filtered(OPT_UNKNOWN);
   for (auto *Arg : Unknowns)
-    warning("Warning: unknown argument: " + Arg->getSpelling());
+    warning("warning: unknown argument: " + Arg->getSpelling());
   if (Unknowns.begin() != Unknowns.end())
-    error("Unknown argument(s) found");
+    error("unknown argument(s) found");
   return Args;
 }
 

Modified: lld/trunk/ELF/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.cpp?rev=263240&r1=263239&r2=263240&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Fri Mar 11 08:43:02 2016
@@ -311,7 +311,7 @@ SymbolBody *elf::ObjectFile<ELFT>::creat
 
   switch (Binding) {
   default:
-    fatal("Unexpected binding");
+    fatal("unexpected binding");
   case STB_GLOBAL:
   case STB_WEAK:
   case STB_GNU_UNIQUE:

Modified: lld/trunk/ELF/LinkerScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.cpp?rev=263240&r1=263239&r2=263240&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Fri Mar 11 08:43:02 2016
@@ -166,7 +166,7 @@ void ScriptParser::run() {
     if (Handler Fn = Cmd.lookup(Tok))
       (this->*Fn)();
     else
-      setError("Unknown directive: " + Tok);
+      setError("unknown directive: " + Tok);
   }
 }
 
@@ -190,7 +190,7 @@ std::vector<StringRef> ScriptParser::tok
     if (S.startswith("\"")) {
       size_t E = S.find("\"", 1);
       if (E == StringRef::npos) {
-        error("Unclosed quote");
+        error("unclosed quote");
         return {};
       }
       Ret.push_back(S.substr(1, E - 1));
@@ -217,7 +217,7 @@ StringRef ScriptParser::skipSpace(String
     if (S.startswith("/*")) {
       size_t E = S.find("*/", 2);
       if (E == StringRef::npos) {
-        error("Unclosed comment in a linker script");
+        error("unclosed comment in a linker script");
         return "";
       }
       S = S.substr(E + 2);
@@ -237,7 +237,7 @@ StringRef ScriptParser::next() {
   if (Error)
     return "";
   if (atEOF()) {
-    setError("Unexpected EOF");
+    setError("unexpected EOF");
     return "";
   }
   return Tokens[Pos++];
@@ -255,7 +255,7 @@ bool ScriptParser::skip(StringRef Tok) {
   if (Error)
     return false;
   if (atEOF()) {
-    setError("Unexpected EOF");
+    setError("unexpected EOF");
     return false;
   }
   if (Tok != Tokens[Pos])
@@ -352,7 +352,7 @@ void ScriptParser::readInclude() {
   StringRef Tok = next();
   auto MBOrErr = MemoryBuffer::getFile(Tok);
   if (!MBOrErr) {
-    setError("Cannot open " + Tok);
+    setError("cannot open " + Tok);
     return;
   }
   std::unique_ptr<MemoryBuffer> &MB = *MBOrErr;
@@ -385,7 +385,7 @@ void ScriptParser::readOutputFormat() {
   if (Tok == ")")
    return;
   if (Tok != ",") {
-    setError("Unexpected token: " + Tok);
+    setError("unexpected token: " + Tok);
     return;
   }
   next();

Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=263240&r1=263239&r2=263240&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Fri Mar 11 08:43:02 2016
@@ -683,7 +683,7 @@ EhFrameHeader<ELFT>::getFdePc(uintX_t Eh
     PC = read64<E>(F.PCRel);
     break;
   default:
-    fatal("Unknown FDE size encoding");
+    fatal("unknown FDE size encoding");
   }
   switch (F.Enc & 0x70) {
   case DW_EH_PE_absptr:
@@ -691,7 +691,7 @@ EhFrameHeader<ELFT>::getFdePc(uintX_t Eh
   case DW_EH_PE_pcrel:
     return PC + EhVA + F.Off + 8;
   default:
-    fatal("Unknown FDE size relative encoding");
+    fatal("unknown FDE size relative encoding");
   }
 }
 
@@ -966,7 +966,7 @@ Cie<ELFT>::Cie(EHInputSection<ELFT> *S,
 // Read a byte and advance D by one byte.
 static uint8_t readByte(ArrayRef<uint8_t> &D) {
   if (D.empty())
-    fatal("Corrupted or unsupported CIE information");
+    fatal("corrupted or unsupported CIE information");
   uint8_t B = D.front();
   D = D.slice(1);
   return B;
@@ -979,7 +979,7 @@ static void skipLeb128(ArrayRef<uint8_t>
     if ((Val & 0x80) == 0)
       return;
   }
-  fatal("Corrupted or unsupported CIE information");
+  fatal("corrupted or unsupported CIE information");
 }
 
 template <class ELFT> static size_t getAugPSize(unsigned Enc) {
@@ -997,7 +997,7 @@ template <class ELFT> static size_t getA
   case DW_EH_PE_sdata8:
     return 8;
   }
-  fatal("Unknown FDE encoding");
+  fatal("unknown FDE encoding");
 }
 
 template <class ELFT> static void skipAugP(ArrayRef<uint8_t> &D) {
@@ -1006,7 +1006,7 @@ template <class ELFT> static void skipAu
     fatal("DW_EH_PE_aligned encoding is not supported");
   size_t Size = getAugPSize<ELFT>(Enc);
   if (Size >= D.size())
-    fatal("Corrupted CIE");
+    fatal("corrupted CIE");
   D = D.slice(Size);
 }
 
@@ -1022,7 +1022,7 @@ uint8_t EHOutputSection<ELFT>::getFdeEnc
 
   const unsigned char *AugEnd = std::find(D.begin() + 1, D.end(), '\0');
   if (AugEnd == D.end())
-    fatal("Corrupted CIE");
+    fatal("corrupted CIE");
   StringRef Aug(reinterpret_cast<const char *>(D.begin()), AugEnd - D.begin());
   D = D.slice(Aug.size() + 1);
 
@@ -1058,7 +1058,7 @@ uint8_t EHOutputSection<ELFT>::getFdeEnc
       readByte(D);
       continue;
     }
-    fatal("Unknown .eh_frame augmentation string: " + Aug);
+    fatal("unknown .eh_frame augmentation string: " + Aug);
   }
   return DW_EH_PE_absptr;
 }

Modified: lld/trunk/ELF/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SymbolTable.cpp?rev=263240&r1=263239&r2=263240&view=diff
==============================================================================
--- lld/trunk/ELF/SymbolTable.cpp (original)
+++ lld/trunk/ELF/SymbolTable.cpp Fri Mar 11 08:43:02 2016
@@ -321,7 +321,7 @@ template <class ELFT> void SymbolTable<E
   // equivalent (conflicting), or more preferable, respectively.
   int Comp = Existing->compare<ELFT>(New);
   if (Comp == 0) {
-    std::string S = "Duplicate symbol: " + conflictMsg(Existing, New);
+    std::string S = "duplicate symbol: " + conflictMsg(Existing, New);
     if (Config->AllowMultipleDefinition)
       warning(S);
     else

Modified: lld/trunk/ELF/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Target.cpp?rev=263240&r1=263239&r2=263240&view=diff
==============================================================================
--- lld/trunk/ELF/Target.cpp (original)
+++ lld/trunk/ELF/Target.cpp Fri Mar 11 08:43:02 2016
@@ -535,7 +535,7 @@ void X86TargetInfo::relocateOne(uint8_t
     write32le(Loc, Out<ELF32LE>::TlsPhdr->p_memsz - SA);
     break;
   default:
-    fatal("Unrecognized reloc " + Twine(Type));
+    fatal("unrecognized reloc " + Twine(Type));
   }
 }
 
@@ -956,7 +956,7 @@ void X86_64TargetInfo::relocateOne(uint8
     break;
   }
   default:
-    fatal("Unrecognized reloc " + Twine(Type));
+    fatal("unrecognized reloc " + Twine(Type));
   }
 }
 
@@ -986,7 +986,7 @@ void PPCTargetInfo::relocateOne(uint8_t
     write16be(Loc, applyPPCLo(SA));
     break;
   default:
-    fatal("Unrecognized reloc " + Twine(Type));
+    fatal("unrecognized reloc " + Twine(Type));
   }
 }
 
@@ -1194,7 +1194,7 @@ void PPC64TargetInfo::relocateOne(uint8_
     write64be(Loc, SA);
     break;
   default:
-    fatal("Unrecognized reloc " + Twine(Type));
+    fatal("unrecognized reloc " + Twine(Type));
   }
 }
 
@@ -1457,7 +1457,7 @@ void AArch64TargetInfo::relocateOne(uint
     break;
   }
   default:
-    fatal("Unrecognized reloc " + Twine(Type));
+    fatal("unrecognized reloc " + Twine(Type));
   }
 }
 
@@ -1556,7 +1556,7 @@ void AArch64TargetInfo::relocateTlsIeToL
 void AMDGPUTargetInfo::relocateOne(uint8_t *Loc, uint8_t *BufEnd, uint32_t Type,
                                    uint64_t P, uint64_t SA, uint64_t ZA,
                                    uint8_t *PairedLoc) const {
-  llvm_unreachable("Not implemented");
+  llvm_unreachable("not implemented");
 }
 
 template <class ELFT> MipsTargetInfo<ELFT>::MipsTargetInfo() {
@@ -1773,7 +1773,7 @@ void MipsTargetInfo<ELFT>::relocateOne(u
     writeMipsLo16<E>(Loc, S + readSignedLo16<E>(Loc) - P);
     break;
   default:
-    fatal("Unrecognized reloc " + Twine(Type));
+    fatal("unrecognized reloc " + Twine(Type));
   }
 }
 

Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=263240&r1=263239&r2=263240&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Fri Mar 11 08:43:02 2016
@@ -500,7 +500,7 @@ static void reportUndefined(SymbolTable<
   if ((Config->Relocatable || Config->Shared) && !Config->NoUndefined)
     return;
 
-  std::string Msg = "Undefined symbol: " + Sym->getName().str();
+  std::string Msg = "undefined symbol: " + Sym->getName().str();
   if (InputFile *File = Symtab.findFile(Sym))
     Msg += " in " + File->getName().str();
   if (Config->NoinhibitExec)
@@ -1508,7 +1508,7 @@ template <class ELFT> bool Writer<ELFT>:
   ErrorOr<std::unique_ptr<FileOutputBuffer>> BufferOrErr =
       FileOutputBuffer::create(Config->OutputFile, FileSize,
                                FileOutputBuffer::F_executable);
-  if (error(BufferOrErr, "Failed to open " + Config->OutputFile))
+  if (error(BufferOrErr, "failed to open " + Config->OutputFile))
     return false;
   Buffer = std::move(*BufferOrErr);
   return true;

Modified: lld/trunk/test/ELF/basic.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/basic.s?rev=263240&r1=263239&r2=263240&view=diff
==============================================================================
--- lld/trunk/test/ELF/basic.s (original)
+++ lld/trunk/test/ELF/basic.s Fri Mar 11 08:43:02 2016
@@ -192,25 +192,25 @@ _start:
 
 # RUN: not ld.lld %t.foo -o %t2 2>&1 | \
 # RUN:  FileCheck --check-prefix=MISSING %s
-# MISSING: Cannot open {{.*}}.foo: {{[Nn]}}o such file or directory
+# MISSING: cannot open {{.*}}.foo: {{[Nn]}}o such file or directory
 
 # RUN: not ld.lld -o %t2 2>&1 | \
 # RUN:  FileCheck --check-prefix=NO_INPUT %s
-# NO_INPUT: No input files
+# NO_INPUT: no input files.
 
 # RUN: not ld.lld %t.no.such.file -o %t2 2>&1 | \
 # RUN:  FileCheck --check-prefix=CANNOT_OPEN %s
-# CANNOT_OPEN: Cannot open {{.*}}.no.such.file: {{[Nn]}}o such file or directory
+# CANNOT_OPEN: cannot open {{.*}}.no.such.file: {{[Nn]}}o such file or directory
 
 # RUN: not ld.lld %t -o 2>&1 | FileCheck --check-prefix=NO_O_VAL %s
-# NO_O_VAL: Missing arg value for "-o", expected 1 argument.
+# NO_O_VAL: missing arg value for "-o", expected 1 argument.
 
 # RUN: not ld.lld --foo 2>&1 | FileCheck --check-prefix=UNKNOWN %s
-# UNKNOWN: Warning: unknown argument: --foo
+# UNKNOWN: unknown argument: --foo
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
 # RUN: not ld.lld %t %t -o %t2 2>&1 | FileCheck --check-prefix=DUP %s
-# DUP: Duplicate symbol: _start in {{.*}} and {{.*}}
+# DUP: duplicate symbol: _start in {{.*}} and {{.*}}
 
 # RUN: not ld.lld %t -o %t -m wrong_emul 2>&1 | FileCheck --check-prefix=UNKNOWN_EMUL %s
 # UNKNOWN_EMUL: Unknown emulation: wrong_emul

Modified: lld/trunk/test/ELF/conflict.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/conflict.s?rev=263240&r1=263239&r2=263240&view=diff
==============================================================================
--- lld/trunk/test/ELF/conflict.s (original)
+++ lld/trunk/test/ELF/conflict.s Fri Mar 11 08:43:02 2016
@@ -3,20 +3,20 @@
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o
 # RUN: not ld.lld %t1.o %t1.o -o %t2 2>&1 | FileCheck -check-prefix=DEMANGLE %s
 
-# DEMANGLE:    Duplicate symbol: {{mul\(double, double\)|_Z3muldd}} in
-# DEMANGLE:    Duplicate symbol: foo in
+# DEMANGLE:    duplicate symbol: {{mul\(double, double\)|_Z3muldd}} in
+# DEMANGLE:    duplicate symbol: foo in
 
 # RUN: not ld.lld %t1.o %t1.o -o %t2 --no-demangle 2>&1 | \
 # RUN:   FileCheck -check-prefix=NO_DEMANGLE %s
 
-# NO_DEMANGLE: Duplicate symbol: _Z3muldd in
-# NO_DEMANGLE: Duplicate symbol: foo in
+# NO_DEMANGLE: duplicate symbol: _Z3muldd in
+# NO_DEMANGLE: duplicate symbol: foo in
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %S/Inputs/conflict.s -o %t2.o
 # RUN: llvm-ar rcs %t3.a %t2.o
 # RUN: not ld.lld %t1.o %t3.a -u baz -o %t2 2>&1 | FileCheck -check-prefix=ARCHIVE %s
 
-# ARCHIVE: Duplicate symbol: foo in {{.*}}1.o and {{.*}}3.a({{.*}}2.o)
+# ARCHIVE: duplicate symbol: foo in {{.*}}1.o and {{.*}}3.a({{.*}}2.o)
 
 .globl _Z3muldd, foo
 _Z3muldd:

Modified: lld/trunk/test/ELF/driver.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/driver.test?rev=263240&r1=263239&r2=263240&view=diff
==============================================================================
--- lld/trunk/test/ELF/driver.test (original)
+++ lld/trunk/test/ELF/driver.test Fri Mar 11 08:43:02 2016
@@ -3,16 +3,16 @@
 # RUN: not ld.lld --unknown1 --unknown2 -m foo /no/such/file -lnosuchlib \
 # RUN:   2>&1 | FileCheck -check-prefix=UNKNOWN %s
 
-# UNKNOWN: Warning: unknown argument: --unknown1
-# UNKNOWN: Warning: unknown argument: --unknown2
-# UNKNOWN: Unknown argument(s) found
+# UNKNOWN: warning: unknown argument: --unknown1
+# UNKNOWN: warning: unknown argument: --unknown2
+# UNKNOWN: unknown argument(s) found
 # UNKNOWN: Unknown emulation: foo
-# UNKNOWN: Cannot open /no/such/file
+# UNKNOWN: cannot open /no/such/file
 # UNKNOWN: Unable to find library -lnosuchlib
 
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
 # RUN: not ld.lld %t -o /no/such/file 2>&1 | FileCheck -check-prefix=MISSING %s
-# MISSING: Failed to open /no/such/file
+# MISSING: failed to open /no/such/file
 
 # RUN: ld.lld --help 2>&1 | FileCheck -check-prefix=HELP %s
 # HELP: USAGE:

Modified: lld/trunk/test/ELF/duplicate-internal.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/duplicate-internal.s?rev=263240&r1=263239&r2=263240&view=diff
==============================================================================
--- lld/trunk/test/ELF/duplicate-internal.s (original)
+++ lld/trunk/test/ELF/duplicate-internal.s Fri Mar 11 08:43:02 2016
@@ -3,7 +3,7 @@
 # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o
 # RUN: not ld.lld -shared %t.o -o %t.so 2>&1 | FileCheck %s
 
-# CHECK: Duplicate symbol: _gp in (internal) and {{.*}}
+# CHECK: duplicate symbol: _gp in (internal) and {{.*}}
 
 # REQUIRES: mips
 

Modified: lld/trunk/test/ELF/invalid-elf.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid-elf.test?rev=263240&r1=263239&r2=263240&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid-elf.test (original)
+++ lld/trunk/test/ELF/invalid-elf.test Fri Mar 11 08:43:02 2016
@@ -14,7 +14,7 @@
 
 # RUN: not ld.lld %p/Inputs/invalid-binding.elf -o %t2 2>&1 | \
 # RUN:   FileCheck --check-prefix=INVALID-BINDING %s
-# INVALID-BINDING: Unexpected binding
+# INVALID-BINDING: unexpected binding
 
 # RUN: not ld.lld %p/Inputs/invalid-section-index.elf -o %t2 2>&1 | \
 # RUN:   FileCheck --check-prefix=INVALID-SECTION-INDEX %s

Modified: lld/trunk/test/ELF/invalid-linkerscript.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/invalid-linkerscript.test?rev=263240&r1=263239&r2=263240&view=diff
==============================================================================
--- lld/trunk/test/ELF/invalid-linkerscript.test (original)
+++ lld/trunk/test/ELF/invalid-linkerscript.test Fri Mar 11 08:43:02 2016
@@ -15,40 +15,40 @@
 
 # RUN: echo foobar > %t1
 # RUN: not ld.lld %t1 no-such-file 2>&1 | FileCheck -check-prefix=ERR1 %s
-# ERR1: Unknown directive: foobar
-# ERR1: Cannot open no-such-file:
+# ERR1: unknown directive: foobar
+# ERR1: cannot open no-such-file:
 
 # RUN: echo "foo \"bar" > %t2
 # RUN: not ld.lld %t2 no-such-file 2>&1 | FileCheck -check-prefix=ERR2 %s
-# ERR2: Unclosed quote
-# ERR2: Cannot open no-such-file:
+# ERR2: unclosed quote
+# ERR2: cannot open no-such-file:
 
 # RUN: echo "/*" > %t3
 # RUN: not ld.lld %t3 no-such-file 2>&1 | FileCheck -check-prefix=ERR3 %s
-# ERR3: Unclosed comment
-# ERR3: Cannot open no-such-file:
+# ERR3: unclosed comment
+# ERR3: cannot open no-such-file:
 
 # RUN: echo "EXTERN (" > %t4
 # RUN: not ld.lld %t4 no-such-file 2>&1 | FileCheck -check-prefix=ERR4 %s
-# ERR4: Unexpected EOF
-# ERR4: Cannot open no-such-file:
+# ERR4: unexpected EOF
+# ERR4: cannot open no-such-file:
 
 # RUN: echo "EXTERN (" > %t5
 # RUN: not ld.lld %t5 no-such-file 2>&1 | FileCheck -check-prefix=ERR5 %s
-# ERR5: Unexpected EOF
-# ERR5: Cannot open no-such-file:
+# ERR5: unexpected EOF
+# ERR5: cannot open no-such-file:
 
 # RUN: echo "EXTERN xyz" > %t6
 # RUN: not ld.lld %t6 no-such-file 2>&1 | FileCheck -check-prefix=ERR6 %s
 # ERR6: ( expected, but got xyz
-# ERR6: Cannot open no-such-file:
+# ERR6: cannot open no-such-file:
 
 # RUN: echo "INCLUDE /no/such/file" > %t7
 # RUN: not ld.lld %t7 no-such-file 2>&1 | FileCheck -check-prefix=ERR7 %s
-# ERR7: Cannot open /no/such/file
-# ERR7: Cannot open no-such-file:
+# ERR7: cannot open /no/such/file
+# ERR7: cannot open no-such-file:
 
 # RUN: echo "OUTPUT_FORMAT(x y z)" > %t8
 # RUN: not ld.lld %t8 no-such-file 2>&1 | FileCheck -check-prefix=ERR8 %s
-# ERR8: Unexpected token: y
-# ERR8: Cannot open no-such-file:
+# ERR8: unexpected token: y
+# ERR8: cannot open no-such-file:

Modified: lld/trunk/test/ELF/libsearch.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/libsearch.s?rev=263240&r1=263239&r2=263240&view=diff
==============================================================================
--- lld/trunk/test/ELF/libsearch.s (original)
+++ lld/trunk/test/ELF/libsearch.s Fri Mar 11 08:43:02 2016
@@ -13,12 +13,12 @@
 // Should fail if no library specified
 // RUN: not ld.lld -l 2>&1 \
 // RUN:   | FileCheck --check-prefix=NOLIBRARY %s
-// NOLIBRARY: Missing arg value for "-l", expected 1 argument.
+// NOLIBRARY: missing arg value for "-l", expected 1 argument.
 
 // Should not link because of undefined symbol _bar
 // RUN: not ld.lld -o %t3 %t.o 2>&1 \
 // RUN:   | FileCheck --check-prefix=UNDEFINED %s
-// UNDEFINED: Undefined symbol: _bar
+// UNDEFINED: undefined symbol: _bar
 
 // Should fail if cannot find specified library (without -L switch)
 // RUN: not ld.lld -o %t3 %t.o -lls 2>&1 \

Modified: lld/trunk/test/ELF/linkerscript.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript.s?rev=263240&r1=263239&r2=263240&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript.s (original)
+++ lld/trunk/test/ELF/linkerscript.s Fri Mar 11 08:43:02 2016
@@ -58,7 +58,7 @@
 # RUN: not ld.lld -o %t2 %t.script %t > %t.log 2>&1
 # RUN: FileCheck -check-prefix=ERR-ENTRY %s < %t.log
 
-# ERR-ENTRY: Undefined symbol: _wrong_label
+# ERR-ENTRY: undefined symbol: _wrong_label
 
 # -e has precedence over linker script's ENTRY.
 # RUN: echo "ENTRY(_label)" > %t.script
@@ -104,7 +104,7 @@
 # RUN: not ld.lld -o foo %t.script > %t.log 2>&1
 # RUN: FileCheck -check-prefix=ERR1 %s < %t.log
 
-# ERR1: Unknown directive: FOO
+# ERR1: unknown directive: FOO
 
 .globl _start, _label;
 _start:

Modified: lld/trunk/test/ELF/lto/duplicated.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/duplicated.ll?rev=263240&r1=263239&r2=263240&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/duplicated.ll (original)
+++ lld/trunk/test/ELF/lto/duplicated.ll Fri Mar 11 08:43:02 2016
@@ -1,7 +1,7 @@
 ; REQUIRES: x86
 ; RUN: llvm-as %s -o %t.o
 ; RUN: not ld.lld -m elf_x86_64 %t.o %t.o -o %t.so -shared 2>&1 | FileCheck %s
-; CHECK: Duplicate symbol: f in {{.*}}.o and {{.*}}.o
+; CHECK: duplicate symbol: f in {{.*}}.o and {{.*}}.o
 target triple = "x86_64-unknown-linux-gnu"
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
 

Modified: lld/trunk/test/ELF/sysroot.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/sysroot.s?rev=263240&r1=263239&r2=263240&view=diff
==============================================================================
--- lld/trunk/test/ELF/sysroot.s (original)
+++ lld/trunk/test/ELF/sysroot.s Fri Mar 11 08:43:02 2016
@@ -9,7 +9,7 @@
 // Should not link because of undefined symbol _bar
 // RUN: not ld.lld -o %t/r %t/m.o 2>&1 \
 // RUN:     | FileCheck --check-prefix=UNDEFINED %s
-// UNDEFINED: Undefined symbol: _bar
+// UNDEFINED: undefined symbol: _bar
 
 // We need to be sure that there is no suitable library in the /lib directory
 // RUN: not ld.lld -o %t/r %t/m.o -L/lib -l:libls.a 2>&1 \

Modified: lld/trunk/test/ELF/tls-static.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/tls-static.s?rev=263240&r1=263239&r2=263240&view=diff
==============================================================================
--- lld/trunk/test/ELF/tls-static.s (original)
+++ lld/trunk/test/ELF/tls-static.s Fri Mar 11 08:43:02 2016
@@ -10,4 +10,4 @@
 _start:
   call __tls_get_addr
 
-// CHECK: Undefined symbol: __tls_get_addr
+// CHECK: undefined symbol: __tls_get_addr

Modified: lld/trunk/test/ELF/undef-start.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/undef-start.s?rev=263240&r1=263239&r2=263240&view=diff
==============================================================================
--- lld/trunk/test/ELF/undef-start.s (original)
+++ lld/trunk/test/ELF/undef-start.s Fri Mar 11 08:43:02 2016
@@ -1,4 +1,4 @@
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
 # RUN: not ld.lld %t -o %t2 2>&1 | FileCheck %s
-# CHECK: Undefined symbol: _start
+# CHECK: undefined symbol: _start
 # REQUIRES: x86

Modified: lld/trunk/test/ELF/undef.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/undef.s?rev=263240&r1=263239&r2=263240&view=diff
==============================================================================
--- lld/trunk/test/ELF/undef.s (original)
+++ lld/trunk/test/ELF/undef.s Fri Mar 11 08:43:02 2016
@@ -1,7 +1,7 @@
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
 # RUN: not ld.lld %t -o %t2 2>&1 | FileCheck %s
-# CHECK: Undefined symbol: bar in {{.*}}
-# CHECK: Undefined symbol: foo in {{.*}}
+# CHECK: undefined symbol: bar in {{.*}}
+# CHECK: undefined symbol: foo in {{.*}}
 # REQUIRES: x86
 
   .globl _start




More information about the llvm-commits mailing list