1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Object/COFF: Add accessors for import header bitfields.

llvm-svn: 238277
This commit is contained in:
Rui Ueyama 2015-05-27 02:55:04 +00:00
parent aeb0ec68a8
commit 9eb33670f1

View File

@ -458,6 +458,8 @@ struct coff_import_header {
support::ulittle32_t SizeOfData;
support::ulittle16_t OrdinalHint;
support::ulittle16_t TypeInfo;
int getType() const { return TypeInfo & 0x3; }
int getNameType() const { return (TypeInfo & 0x7) >> 2; }
};
struct coff_import_directory_table_entry {