This patch adds a new flag "-coff-imports" to llvm-readobj.
authorRui Ueyama <ruiu@google.com>
Thu, 2 Oct 2014 17:02:18 +0000 (17:02 +0000)
committerRui Ueyama <ruiu@google.com>
Thu, 2 Oct 2014 17:02:18 +0000 (17:02 +0000)
commitf3cd10bdc3f7778900b486d9afcbf5f3c7898e08
tree87639d7035e35fb3ebb9f33ba2b3f34a4206a01c
parentddc725b9b85110652325a7a66ca647a18e426251
This patch adds a new flag "-coff-imports" to llvm-readobj.
When the flag is given, the command prints out the COFF import table.

Currently only the import table directory will be printed.
I'm going to make another patch to print out the imported symbols.

The implementation of import directory entry iterator in
COFFObjectFile.cpp was buggy. This patch fixes that too.

http://reviews.llvm.org/D5569

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218891 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/COFF.h
lib/Object/COFFObjectFile.cpp
test/tools/llvm-readobj/Inputs/imports.exe.coff-i386 [new file with mode: 0644]
test/tools/llvm-readobj/Inputs/imports.exe.coff-x86-64 [new file with mode: 0644]
test/tools/llvm-readobj/imports.test [new file with mode: 0644]
tools/llvm-readobj/COFFDumper.cpp
tools/llvm-readobj/ObjDumper.h
tools/llvm-readobj/llvm-readobj.cpp