OSDN Git Service

pdbdump: print out COFF section headers.
authorRui Ueyama <ruiu@google.com>
Thu, 2 Jun 2016 18:20:20 +0000 (18:20 +0000)
committerRui Ueyama <ruiu@google.com>
Thu, 2 Jun 2016 18:20:20 +0000 (18:20 +0000)
commit698e829b29afb2cba6f27775eaad5e71311b5704
tree748974019241f90c0f844428573a65e360b5d95d
parent15cf897d6bbed4adf997ffa330204500337d52e2
pdbdump: print out COFF section headers.

Unlike other sections that can grow to any size, the COFF section header
stream has maximum length because each record is fixed size and the COFF
file format limits the maximum number of sections. So I decided to not
create a specific stream class for it. Instead, I added a member function
to DbiStream class which returns a vector of COFF headers.

Differential Revision: http://reviews.llvm.org/D20717

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271557 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/PDB/Raw/DbiStream.h
lib/DebugInfo/PDB/Raw/DbiStream.cpp
test/DebugInfo/PDB/pdbdump-headers.test
tools/llvm-pdbdump/llvm-pdbdump.cpp