[ELF] - Make x86 unknown relocations messages to be consistent with x64 ones

Addded quotes to be consistent with x64 messages,
where quotes were used for nicer reporting 'Unknown' relocations initially.

llvm-svn: 291752
This commit is contained in:
George Rimar 2017-01-12 09:09:15 +00:00
parent 66666360de
commit 1743e55e34
2 changed files with 3 additions and 3 deletions

View File

@ -386,7 +386,7 @@ RelExpr X86TargetInfo::getRelExpr(uint32_t Type, const SymbolBody &S) const {
case R_386_NONE:
return R_HINT;
default:
error("do not know how to handle relocation " + toString(Type) + " (" +
error("do not know how to handle relocation '" + toString(Type) + "' (" +
Twine(Type) + ")");
return R_HINT;
}

View File

@ -3,8 +3,8 @@
# RUN: llvm-mc -filetype=obj -triple=i386-pc-linux-gnu %S/Inputs/unknown-reloc.s -o %t2.o
# RUN: not ld.lld %t1.o %t2.o -o %t.out 2>&1 | FileCheck %s
# CHECK: do not know how to handle relocation R_386_PC8 (23)
# CHECK: do not know how to handle relocation R_386_8 (22)
# CHECK: do not know how to handle relocation 'R_386_PC8' (23)
# CHECK: do not know how to handle relocation 'R_386_8' (22)
.text
.global foo