summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2014-01-24 04:21:00 +0000
committerRui Ueyama <ruiu@google.com>2014-01-24 04:21:00 +0000
commitda89d6acf4d999970eb971dcd5a8b02c5246ab8f (patch)
tree6f1c7e841506a97e3c2d4c69a91d08f8bb5202ba /include
parenta1f7c26cc8028c73842065e33f0acdee40cf868d (diff)
downloadllvm-da89d6acf4d999970eb971dcd5a8b02c5246ab8f.tar.gz
llvm-da89d6acf4d999970eb971dcd5a8b02c5246ab8f.tar.bz2
llvm-da89d6acf4d999970eb971dcd5a8b02c5246ab8f.tar.xz
Add constants for optional header magic field.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199972 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/COFF.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Support/COFF.h b/include/llvm/Support/COFF.h
index 2de01000a7..d9529dcc38 100644
--- a/include/llvm/Support/COFF.h
+++ b/include/llvm/Support/COFF.h
@@ -451,6 +451,11 @@ namespace COFF {
};
struct PEHeader {
+ enum {
+ PE32 = 0x10b,
+ PE32_PLUS = 0x20b
+ };
+
uint16_t Magic;
uint8_t MajorLinkerVersion;
uint8_t MinorLinkerVersion;