summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2013-06-12 19:10:33 +0000
committerRui Ueyama <ruiu@google.com>2013-06-12 19:10:33 +0000
commit4bf771b4e6d37ae1d6ae08ea27c4070a3a09784d (patch)
treeda83d403dd828e21ed4072aa6a9c587c827c2483 /include
parent100fbdd06be7590b23c4707a98cd605bdb519498 (diff)
downloadllvm-4bf771b4e6d37ae1d6ae08ea27c4070a3a09784d.tar.gz
llvm-4bf771b4e6d37ae1d6ae08ea27c4070a3a09784d.tar.bz2
llvm-4bf771b4e6d37ae1d6ae08ea27c4070a3a09784d.tar.xz
readobj: Dump PE/COFF optional records.
These records are mandatory for executables and are used by the loader. Reviewers: rafael CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D939 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183852 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Object/COFF.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Object/COFF.h b/include/llvm/Object/COFF.h
index 209aa76efd..ef9cfb529e 100644
--- a/include/llvm/Object/COFF.h
+++ b/include/llvm/Object/COFF.h
@@ -188,7 +188,8 @@ struct coff_aux_section_definition {
class COFFObjectFile : public ObjectFile {
private:
- const coff_file_header *Header;
+ const coff_file_header *COFFHeader;
+ const pe32_header *PE32Header;
const coff_section *SectionTable;
const coff_symbol *SymbolTable;
const char *StringTable;
@@ -272,6 +273,8 @@ public:
virtual StringRef getLoadName() const;
error_code getHeader(const coff_file_header *&Res) const;
+ error_code getCOFFHeader(const coff_file_header *&Res) const;
+ error_code getPE32Header(const pe32_header *&Res) const;
error_code getSection(int32_t index, const coff_section *&Res) const;
error_code getSymbol(uint32_t index, const coff_symbol *&Res) const;
template <typename T>