Add single quotes to error messages.

llvm-svn: 287254
This commit is contained in:
Rui Ueyama 2016-11-17 19:57:47 +00:00
parent 96db27c74f
commit d84124f043
2 changed files with 5 additions and 5 deletions

View File

@ -667,8 +667,8 @@ void SymbolTable<ELFT>::assignExactVersion(SymbolVersion Ver, uint16_t VersionId
for (SymbolBody *B : Syms) {
if (!B || B->isUndefined()) {
if (Config->NoUndefinedVersion)
error("version script assignment of '" + VersionName + "' to symbol " +
Ver.Name + " failed: symbol not defined");
error("version script assignment of '" + VersionName + "' to symbol '" +
Ver.Name + "' failed: symbol not defined");
continue;
}

View File

@ -4,17 +4,17 @@
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
# RUN: not ld.lld --version-script %t.script -shared --no-undefined-version \
# RUN: %t.o -o %t.so 2>&1 | FileCheck -check-prefix=ERR1 %s
# ERR1: version script assignment of 'VERSION_1.0' to symbol bar failed: symbol not defined
# ERR1: version script assignment of 'VERSION_1.0' to symbol 'bar' failed: symbol not defined
# RUN: echo "VERSION_1.0 { global: und; };" > %t2.script
# RUN: not ld.lld --version-script %t2.script -shared --no-undefined-version \
# RUN: %t.o -o %t.so 2>&1 | FileCheck -check-prefix=ERR2 %s
# ERR2: version script assignment of 'VERSION_1.0' to symbol und failed: symbol not defined
# ERR2: version script assignment of 'VERSION_1.0' to symbol 'und' failed: symbol not defined
# RUN: echo "VERSION_1.0 { local: und; };" > %t3.script
# RUN: not ld.lld --version-script %t3.script -shared --no-undefined-version \
# RUN: %t.o -o %t.so 2>&1 | FileCheck -check-prefix=ERR3 %s
# ERR3: version script assignment of 'local' to symbol und failed: symbol not defined
# ERR3: version script assignment of 'local' to symbol 'und' failed: symbol not defined
.text
.globl foo