forked from OSchip/llvm-project
Object/COFF: Add accessors for import header bitfields.
llvm-svn: 238277
This commit is contained in:
parent
a004f22a2d
commit
e19cce2654
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue