summaryrefslogtreecommitdiffstats
path: root/llvm
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
commit4d97536ad0d5777c5fc35fea9231ffe572b60a08 (patch)
treec251d6d8b782cabb2f2e2112ceb82275f1db7391 /llvm
parent0e2ccb2df10ae5e7be0983fd1565cbacb19fba33 (diff)
downloadbcm5719-llvm-4d97536ad0d5777c5fc35fea9231ffe572b60a08.tar.gz
bcm5719-llvm-4d97536ad0d5777c5fc35fea9231ffe572b60a08.zip
Add constants for optional header magic field.
llvm-svn: 199972
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Support/COFF.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/COFF.h b/llvm/include/llvm/Support/COFF.h
index 2de01000a74..d9529dcc38b 100644
--- a/llvm/include/llvm/Support/COFF.h
+++ b/llvm/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;
OpenPOWER on IntegriCloud