From d84124f0437885695a4bf2788b52439a60d36122 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Thu, 17 Nov 2016 19:57:47 +0000 Subject: [PATCH] Add single quotes to error messages. llvm-svn: 287254 --- lld/ELF/SymbolTable.cpp | 4 ++-- lld/test/ELF/version-script-noundef.s | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lld/ELF/SymbolTable.cpp b/lld/ELF/SymbolTable.cpp index e859e39..24e7e9b 100644 --- a/lld/ELF/SymbolTable.cpp +++ b/lld/ELF/SymbolTable.cpp @@ -667,8 +667,8 @@ void SymbolTable::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; } diff --git a/lld/test/ELF/version-script-noundef.s b/lld/test/ELF/version-script-noundef.s index 45d0547..247752c 100644 --- a/lld/test/ELF/version-script-noundef.s +++ b/lld/test/ELF/version-script-noundef.s @@ -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 -- 2.7.4