[lld] r287197 - Add single quotes to a warning message for consistency.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 16 19:32:41 PST 2016
Author: ruiu
Date: Wed Nov 16 21:32:41 2016
New Revision: 287197
URL: http://llvm.org/viewvc/llvm-project?rev=287197&view=rev
Log:
Add single quotes to a warning message for consistency.
Modified:
lld/trunk/ELF/SymbolTable.cpp
lld/trunk/test/ELF/version-script.s
Modified: lld/trunk/ELF/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SymbolTable.cpp?rev=287197&r1=287196&r2=287197&view=diff
==============================================================================
--- lld/trunk/ELF/SymbolTable.cpp (original)
+++ lld/trunk/ELF/SymbolTable.cpp Wed Nov 16 21:32:41 2016
@@ -670,7 +670,7 @@ void SymbolTable<ELFT>::assignExactVersi
}
if (B->symbol()->VersionId != Config->DefaultSymbolVersion)
- warn("duplicate symbol " + Ver.Name + " in version script");
+ warn("duplicate symbol '" + Ver.Name + "' in version script");
B->symbol()->VersionId = VersionId;
}
}
Modified: lld/trunk/test/ELF/version-script.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/version-script.s?rev=287197&r1=287196&r2=287197&view=diff
==============================================================================
--- lld/trunk/test/ELF/version-script.s (original)
+++ lld/trunk/test/ELF/version-script.s Wed Nov 16 21:32:41 2016
@@ -40,7 +40,7 @@
# RUN: echo "VERSION_2.0 { global: foo1; local: *; };" >> %t6.script
# RUN: ld.lld --version-script %t6.script -shared %t.o %t2.so -o %t6.so 2>&1 | \
# RUN: FileCheck -check-prefix=WARN2 %s
-# WARN2: duplicate symbol foo1 in version script
+# WARN2: duplicate symbol 'foo1' in version script
# RUN: ld.lld --version-script %t.script --dynamic-list %t.list %t.o %t2.so -o %t2
# RUN: llvm-readobj %t2 > /dev/null
More information about the llvm-commits
mailing list