Object/COFF: Fix import library's getNameType method.

This expression to extract bits were simply wrong.
I'm going to test this functionality from LLD.

llvm-svn: 241703
This commit is contained in:
Rui Ueyama 2015-07-08 18:21:09 +00:00
parent c8a3e9273c
commit f82b4fa9c7
1 changed files with 1 additions and 1 deletions

View File

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