]> granicus.if.org Git - llvm/commitdiff
Object/COFF: Add coff_import_header.
authorRui Ueyama <ruiu@google.com>
Wed, 27 May 2015 02:40:20 +0000 (02:40 +0000)
committerRui Ueyama <ruiu@google.com>
Wed, 27 May 2015 02:40:20 +0000 (02:40 +0000)
This type is described in the PE/COFF spec section 7.1.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238275 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Object/COFF.h

index b28cec4864473b0078ed2d0a6c899e2edf57f5c0..606b80f1056b8f17eca6bab2cc4345b35a4fbbf1 100644 (file)
@@ -449,6 +449,17 @@ struct coff_aux_clr_token {
   support::ulittle32_t SymbolTableIndex;
 };
 
+struct coff_import_header {
+  support::ulittle16_t Sig1;
+  support::ulittle16_t Sig2;
+  support::ulittle16_t Version;
+  support::ulittle16_t Machine;
+  support::ulittle32_t TimeDateStamp;
+  support::ulittle32_t SizeOfData;
+  support::ulittle16_t OrdinalHint;
+  support::ulittle16_t TypeInfo;
+};
+
 struct coff_import_directory_table_entry {
   support::ulittle32_t ImportLookupTableRVA;
   support::ulittle32_t TimeDateStamp;