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)
commitce2164f45c5f1930d2c29df2e06128408e74bbfc
tree56f0316b69ab20eaed1e71ba9c6ca73a24c66b54
parent50ab15654e0fa7a60f651bb90023aa5a32a47c94
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

llvm-svn: 220866
llvm/include/llvm/Object/ELFObjectFile.h
llvm/test/Object/X86/objdump-disassembly-inline-relocations.test
llvm/test/Object/objdump-relocations.test