llmv-objdump/COFF: Print export table contents.
authorRui Ueyama <ruiu@google.com>
Thu, 16 Jan 2014 07:05:49 +0000 (07:05 +0000)
committerRui Ueyama <ruiu@google.com>
Thu, 16 Jan 2014 07:05:49 +0000 (07:05 +0000)
commitfb432acff8c160749ac99576ec8da2a3f1987bc4
treea3a92d288771698ee6d3a8ec96cea0f88683a72d
parent9dcfdf61a843665ef2ab07ad5d8c0b213ef4b059
llmv-objdump/COFF: Print export table contents.

This patch adds the capability to dump export table contents. An example
output is this:

  Export Table:
   Ordinal      RVA  Name
         5   0x2008  exportfn1
         6   0x2010  exportfn2

By adding this feature to llvm-objdump, we will be able to use it to check
export table contents in LLD's tests. Currently we are doing binary
comparison in the tests, which is fragile and not readable to humans.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199358 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/COFF.h
lib/Object/COFFObjectFile.cpp
test/tools/llvm-objdump/Inputs/export.dll.coff-i386 [new file with mode: 0644]
test/tools/llvm-objdump/coff-private-headers.test
tools/llvm-objdump/COFFDump.cpp