llvm-objdump: don't print relocations in non-relocatable files.
authorRafael Espindola <rafael.espindola@gmail.com>
Sun, 17 Aug 2014 19:09:37 +0000 (19:09 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sun, 17 Aug 2014 19:09:37 +0000 (19:09 +0000)
commit78e8d52a5879597cafb75d18ae60bb3c92e742be
treeee885273717f33d326a45773aea6540137812f06
parentfad339d9ececabae6c327687c8eb2f952d4d0073
llvm-objdump: don't print relocations in non-relocatable files.

This matches the behavior of GNU objdump.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215844 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/COFF.h
include/llvm/Object/ELFObjectFile.h
include/llvm/Object/MachO.h
include/llvm/Object/ObjectFile.h
lib/Object/COFFObjectFile.cpp
lib/Object/MachOObjectFile.cpp
test/Object/objdump-reloc-shared.test [new file with mode: 0644]
tools/llvm-objdump/llvm-objdump.cpp