Move to llvm-readobj code that is only used there.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 6 Aug 2015 21:54:37 +0000 (21:54 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 6 Aug 2015 21:54:37 +0000 (21:54 +0000)
commit8a0ff180e8b553571bdbd057837f54b6ed250a81
treeb00767f3751e55620d184798bb33af1be92bce66
parentecc0eab4a8ddb12dfd8fca8ab50c45c8a5b931a8
Move to llvm-readobj code that is only used there.

lld might end up using a small part of this, but it will be in a much
refactored form. For now this unblocks avoiding the full section scan in the
ELFFile constructor.

This also has a (very small) error handling improvement.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244282 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/ELF.h
test/Object/corrupt.test
tools/llvm-readobj/ELFDumper.cpp
tools/llvm-readobj/llvm-readobj.cpp