summaryrefslogtreecommitdiff
path: root/include/llvm
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2013-07-19 23:23:29 +0000
committerRui Ueyama <ruiu@google.com>2013-07-19 23:23:29 +0000
commit2f6c0484d68270f09eecac03b7e56053153203f3 (patch)
tree2fb73f45fe1c5ad6f2b17d3c4532f1d5a7c1f160 /include/llvm
parent73d9653cecb407ce714dc3fdf31198a5a67eee2f (diff)
downloadllvm-2f6c0484d68270f09eecac03b7e56053153203f3.tar.gz
llvm-2f6c0484d68270f09eecac03b7e56053153203f3.tar.bz2
llvm-2f6c0484d68270f09eecac03b7e56053153203f3.tar.xz
Retry submitting r186623: COFFDumper: Dump data directory entries.
The original change was rolled back in r186627 because of test failures on the big endian machine. I believe I fixed the issue so re-submitting. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186734 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Object/COFF.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Object/COFF.h b/include/llvm/Object/COFF.h
index c7c5c7f118..21900675ff 100644
--- a/include/llvm/Object/COFF.h
+++ b/include/llvm/Object/COFF.h
@@ -198,6 +198,7 @@ class COFFObjectFile : public ObjectFile {
private:
const coff_file_header *COFFHeader;
const pe32_header *PE32Header;
+ const data_directory *DataDirectory;
const coff_section *SectionTable;
const coff_symbol *SymbolTable;
const char *StringTable;
@@ -283,6 +284,7 @@ public:
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 getDataDirectory(uint32_t index, const data_directory *&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>