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 a004f22a2d
commit e19cce2654
1 changed files with 2 additions and 0 deletions

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 {