summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-09-01 14:09:36 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-09-01 14:09:36 +0000
commit4563704c21a0549c2f2d484c7ca76a67319cf627 (patch)
treee3eeb4830229184a6007a67b91d87ea241ed6df1 /include
parentfb4e8ab200b0027c77b5ac873d50601ea18013e9 (diff)
downloadllvm-4563704c21a0549c2f2d484c7ca76a67319cf627.tar.gz
llvm-4563704c21a0549c2f2d484c7ca76a67319cf627.tar.bz2
llvm-4563704c21a0549c2f2d484c7ca76a67319cf627.tar.xz
COFF: Fix incorrect SCT_COMPLEX_TYPE_SHIFT. Add a few constants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112703 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/COFF.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/llvm/Support/COFF.h b/include/llvm/Support/COFF.h
index bdcadf6e9f..78254ae992 100644
--- a/include/llvm/Support/COFF.h
+++ b/include/llvm/Support/COFF.h
@@ -72,6 +72,12 @@ namespace COFF {
SF_WeakReference = 0x01000000
};
+ enum SymbolSectionNumber {
+ IMAGE_SYM_DEBUG = -2,
+ IMAGE_SYM_ABSOLUTE = -1,
+ IMAGE_SYM_UNDEFINED = 0
+ };
+
/// Storage class tells where and what the symbol represents
enum SymbolStorageClass {
IMAGE_SYM_CLASS_END_OF_FUNCTION = -1, ///< Physical end of function
@@ -133,7 +139,7 @@ namespace COFF {
IMAGE_SYM_DTYPE_ARRAY = 3, ///< An array of base type.
/// Type is formed as (base + (derived << SCT_COMPLEX_TYPE_SHIFT))
- SCT_COMPLEX_TYPE_SHIFT = 4
+ SCT_COMPLEX_TYPE_SHIFT = 8
};
struct section {