aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2012-08-14 22:42:31 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2012-08-14 22:42:31 +0000
commit32bab64eec9aae19c1ca159472fba17b6db8538a (patch)
tree1c7f1f9eed97ac46832c46865a49a71152a44371 /include/llvm/Support
parent7091b2451d46ae7e85188d1c5d7a43d775346ee0 (diff)
downloadexternal_llvm-32bab64eec9aae19c1ca159472fba17b6db8538a.zip
external_llvm-32bab64eec9aae19c1ca159472fba17b6db8538a.tar.gz
external_llvm-32bab64eec9aae19c1ca159472fba17b6db8538a.tar.bz2
[yaml2obj] Fix incorrect use of signed values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161900 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support')
-rw-r--r--include/llvm/Support/COFF.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Support/COFF.h b/include/llvm/Support/COFF.h
index 6c2ee08..ba8adb0 100644
--- a/include/llvm/Support/COFF.h
+++ b/include/llvm/Support/COFF.h
@@ -50,7 +50,7 @@ namespace COFF {
};
enum MachineTypes {
- MT_Invalid = -1,
+ MT_Invalid = 0xffff,
IMAGE_FILE_MACHINE_UNKNOWN = 0x0,
IMAGE_FILE_MACHINE_AM33 = 0x13,
@@ -142,7 +142,7 @@ namespace COFF {
/// Storage class tells where and what the symbol represents
enum SymbolStorageClass {
- SSC_Invalid = -1,
+ SSC_Invalid = 0xff,
IMAGE_SYM_CLASS_END_OF_FUNCTION = -1, ///< Physical end of function
IMAGE_SYM_CLASS_NULL = 0, ///< No symbol
@@ -220,7 +220,7 @@ namespace COFF {
};
enum SectionCharacteristics {
- SC_Invalid = -1,
+ SC_Invalid = 0xffffffff,
IMAGE_SCN_TYPE_NO_PAD = 0x00000008,
IMAGE_SCN_CNT_CODE = 0x00000020,