[llvm] r238277 - Object/COFF: Add accessors for import header bitfields.
Rui Ueyama
ruiu at google.com
Tue May 26 19:55:05 PDT 2015
Author: ruiu
Date: Tue May 26 21:55:04 2015
New Revision: 238277
URL: http://llvm.org/viewvc/llvm-project?rev=238277&view=rev
Log:
Object/COFF: Add accessors for import header bitfields.
Modified:
llvm/trunk/include/llvm/Object/COFF.h
Modified: llvm/trunk/include/llvm/Object/COFF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/COFF.h?rev=238277&r1=238276&r2=238277&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/COFF.h (original)
+++ llvm/trunk/include/llvm/Object/COFF.h Tue May 26 21:55:04 2015
@@ -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 {
More information about the llvm-commits
mailing list