[PECOFF] Remove COFF header from PE header for simplicity.
authorRui Ueyama <ruiu@google.com>
Tue, 11 Jun 2013 21:39:48 +0000 (21:39 +0000)
committerRui Ueyama <ruiu@google.com>
Tue, 11 Jun 2013 21:39:48 +0000 (21:39 +0000)
commit1a4f2a33fbd94c840d620ff572dd25540c650f70
tree87bfe28c17bf72ae6d2bccd2542964747384de22
parentf3e397eb17327423b3f8fff5eac8547c85efddb1
[PECOFF] Remove COFF header from PE header for simplicity.

COFF header is always present both in executable and in object file. PE header
is present only in executable. So the natural way to handle PE/COFF file is
treating COFF is mandatory header and PE is optional. Current data structre
does not allow it, because PE header includes COFF header. Removing COFF
header will simplify the code to handle PE/COFF files.

Reviewers: Bigcheese

CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D952

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183788 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/COFF.h
include/llvm/Support/COFF.h