Fix getRelocationValueString to return the symbol name for EM_386.
authorJan Wen Voung <jvoung@google.com>
Wed, 29 Oct 2014 18:37:13 +0000 (18:37 +0000)
committerJan Wen Voung <jvoung@google.com>
Wed, 29 Oct 2014 18:37:13 +0000 (18:37 +0000)
commit3262c451c490d9cd6dd83caa61f6d31125bf8e3e
tree3681b6db370f32424cab51df23ba02c820c4c7ad
parent4cb59148f0f2078e6ea0eb76958164a552364ed1
Fix getRelocationValueString to return the symbol name for EM_386.

Summary: This helps llvm-objdump -r to print out the symbol name along
with the relocation type on x86. Adjust existing tests from checking
for "Unknown" to check for the symbol now.

Test Plan: Adjusted test/Object tests.

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D5987

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220866 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/ELFObjectFile.h
test/Object/X86/objdump-disassembly-inline-relocations.test
test/Object/objdump-relocations.test