llvm-objdump/COFF: LoadConfiguration does not exist in object file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201883 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rui Ueyama 2014-02-21 20:27:15 +00:00
parent 1e0843084a
commit 6700168fc6

View File

@ -253,6 +253,13 @@ printSEHTable(const COFFObjectFile *Obj, uint32_t TableVA, int Count) {
}
static void printLoadConfiguration(const COFFObjectFile *Obj) {
// Skip if it's not executable.
const pe32_header *PE32Header;
if (error(Obj->getPE32Header(PE32Header)))
return;
if (!PE32Header)
return;
const coff_file_header *Header;
if (error(Obj->getCOFFHeader(Header)))
return;