aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Seaborn <mseaborn@chromium.org>2013-08-28 17:22:24 -0700
committerMark Seaborn <mseaborn@chromium.org>2013-08-28 17:22:24 -0700
commitba45e4b2c5051b7093a6d5ccd8a2d0a8ac53c45b (patch)
tree3fb4d922f584d4043728c1b1a70e63e9e200e845 /include
parente9eafe8abb2e303c8185d83780183c342e9ca08f (diff)
PNaCl bitcode: Remove handling of unsupported floating point types
The only FP types that PNaCl currently supports are float and double. Clean up error reporting: * Convert an assert() to a report_fatal_error(). * Return an error rather than an "undef" value. * Report the type code value when it is unknown. BUG=https://code.google.com/p/nativeclient/issues/detail?id=3590 TEST=PNaCl toolchain trybots Review URL: https://codereview.chromium.org/23191009
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h b/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h
index 3a19ee84ca..2f7bf31914 100644
--- a/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h
+++ b/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h
@@ -89,7 +89,7 @@ namespace naclbitc {
TYPE_CODE_FUNCTION_OLD = 9, // Not used in PNaCl.
- TYPE_CODE_HALF = 10, // HALF
+ TYPE_CODE_HALF = 10, // Not used in PNaCl.
TYPE_CODE_ARRAY = 11, // ARRAY: [numelts, eltty]
TYPE_CODE_VECTOR = 12, // VECTOR: [numelts, eltty]
@@ -97,13 +97,13 @@ namespace naclbitc {
// These are not with the other floating point types because they're
// a late addition, and putting them in the right place breaks
// binary compatibility.
- TYPE_CODE_X86_FP80 = 13, // X86 LONG DOUBLE
- TYPE_CODE_FP128 = 14, // LONG DOUBLE (112 bit mantissa)
- TYPE_CODE_PPC_FP128= 15, // PPC LONG DOUBLE (2 doubles)
+ TYPE_CODE_X86_FP80 = 13, // Not used in PNaCl.
+ TYPE_CODE_FP128 = 14, // Not used in PNaCl.
+ TYPE_CODE_PPC_FP128= 15, // Not used in PNaCl.
TYPE_CODE_METADATA = 16, // Not used in PNaCl.
- TYPE_CODE_X86_MMX = 17, // X86 MMX
+ TYPE_CODE_X86_MMX = 17, // Not used in PNaCl.
TYPE_CODE_STRUCT_ANON = 18, // STRUCT_ANON: [ispacked, eltty x N]
TYPE_CODE_STRUCT_NAME = 19, // STRUCT_NAME: [strchr x N]