projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34afa06
)
Object/COFF: Add accessors for import header bitfields.
author
Rui Ueyama
<ruiu@google.com>
Wed, 27 May 2015 02:55:04 +0000
(
02:55
+0000)
committer
Rui Ueyama
<ruiu@google.com>
Wed, 27 May 2015 02:55:04 +0000
(
02:55
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238277
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Object/COFF.h
patch
|
blob
|
history
diff --git
a/include/llvm/Object/COFF.h
b/include/llvm/Object/COFF.h
index 606b80f1056b8f17eca6bab2cc4345b35a4fbbf1..ccac02036adc78179ddf9a333184eacf2801f01a 100644
(file)
--- a/
include/llvm/Object/COFF.h
+++ b/
include/llvm/Object/COFF.h
@@
-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 {