Fix error messages.

llvm-svn: 320772
This commit is contained in:
Rui Ueyama 2017-12-15 00:07:15 +00:00
parent 44298f26b6
commit 29ceba7961
3 changed files with 3 additions and 3 deletions

View File

@ -808,7 +808,7 @@ template <class ELFT> void SharedFile<ELFT>::parseRest() {
}
if (Sym.getBinding() == STB_LOCAL) {
warn("Found local symbol '" + Name +
warn("found local symbol '" + Name +
"' in global part of symbol table in file " + toString(this));
continue;
}

View File

@ -4,7 +4,7 @@
# RUN: echo | llvm-mc - -o %t1.o -filetype=obj -triple x86_64-pc-linux
# RUN: ld.lld %t1.o %p/Inputs/local-symbol-in-dso.so -o %t 2>&1 | \
# RUN: FileCheck -check-prefix=WARN %s
# WARN: Found local symbol 'foo' in global part of symbol table in file {{.*}}local-symbol-in-dso.so
# WARN: found local symbol 'foo' in global part of symbol table in file {{.*}}local-symbol-in-dso.so
# RUN: llvm-mc %s -o %t2.o -filetype=obj -triple x86_64-pc-linux
# RUN: not ld.lld %t2.o %p/Inputs/local-symbol-in-dso.so -o %t

View File

@ -135,7 +135,7 @@ InputSegment *ObjFile::getSegment(const WasmSymbol &WasmSym) {
return Segment;
}
}
error("Symbol not found in any segment: " + WasmSym.Name);
error("symbol not found in any segment: " + WasmSym.Name);
return nullptr;
}