COFF: Add constants for optional data directory.
authorRui Ueyama <ruiu@google.com>
Tue, 16 Jul 2013 03:11:55 +0000 (03:11 +0000)
committerRui Ueyama <ruiu@google.com>
Tue, 16 Jul 2013 03:11:55 +0000 (03:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186377 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/COFF.h

index d348b76a4468a6b85be382f81732239f832916b1..a39a3f9608e406264c76033c4e683cbe72dfb9d1 100644 (file)
@@ -488,6 +488,24 @@ namespace COFF {
     uint32_t Size;
   };
 
+  enum DataDirectoryIndex {
+    EXPORT_TABLE = 0,
+    IMPORT_TABLE,
+    RESOURCE_TABLE,
+    EXCEPTION_TABLE,
+    CERTIFICATE_TABLE,
+    BASE_RELOCATION_TABLE,
+    DEBUG,
+    ARCHITECTURE,
+    GLOBAL_PTR,
+    TLS_TABLE,
+    LOAD_CONFIG_TABLE,
+    BOUND_IMPORT,
+    IAT,
+    DELAY_IMPORT_DESCRIPTOR,
+    CLR_RUNTIME_HEADER
+  };
+
   enum WindowsSubsystem {
     IMAGE_SUBSYSTEM_UNKNOWN = 0, ///< An unknown subsystem.
     IMAGE_SUBSYSTEM_NATIVE = 1, ///< Device drivers and native Windows processes