diff options
author | Rui Ueyama <ruiu@google.com> | 2014-01-16 03:13:19 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2014-01-16 03:13:19 +0000 |
commit | 6a8151dba16a2315e1b2a7daf27ff454c26d0ad5 (patch) | |
tree | efb2c9aea692aa1dd4ce36159815c6c7a4cb14b0 /include | |
parent | 2666b15908125479cea95066593873168127be72 (diff) | |
download | llvm-6a8151dba16a2315e1b2a7daf27ff454c26d0ad5.tar.gz llvm-6a8151dba16a2315e1b2a7daf27ff454c26d0ad5.tar.bz2 llvm-6a8151dba16a2315e1b2a7daf27ff454c26d0ad5.tar.xz |
Don't use DataRefImpl to implement ImportDirectoryEntryRef.
DataRefImpl (a union of two integers and a pointer) is not the ideal data type
to represent a reference to an import directory entity. We should just use the
pointer to the import table and an offset instead to simplify. No functionality
change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199349 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Object/COFF.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/llvm/Object/COFF.h b/include/llvm/Object/COFF.h index aaffbbcb5e..431029045f 100644 --- a/include/llvm/Object/COFF.h +++ b/include/llvm/Object/COFF.h @@ -369,9 +369,9 @@ public: class ImportDirectoryEntryRef { public: ImportDirectoryEntryRef() : OwningObject(0) {} - ImportDirectoryEntryRef(DataRefImpl ImportDirectory, + ImportDirectoryEntryRef(const import_directory_table_entry *Table, uint32_t I, const COFFObjectFile *Owner) - : ImportDirectoryPimpl(ImportDirectory), OwningObject(Owner) {} + : ImportTable(Table), Index(I), OwningObject(Owner) {} bool operator==(const ImportDirectoryEntryRef &Other) const; error_code getNext(ImportDirectoryEntryRef &Result) const; @@ -384,7 +384,8 @@ public: getImportLookupEntry(const import_lookup_table_entry32 *&Result) const; private: - DataRefImpl ImportDirectoryPimpl; + const import_directory_table_entry *ImportTable; + uint32_t Index; const COFFObjectFile *OwningObject; }; } // end namespace object |