COFF: Fix incorrect SCT_COMPLEX_TYPE_SHIFT. Add a few constants.

llvm-svn: 112703
This commit is contained in:
Michael J. Spencer 2010-09-01 14:09:36 +00:00
parent 4d51e3fd17
commit c582c7b5c9
1 changed files with 7 additions and 1 deletions

View File

@ -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 {