aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKarl Schimpf <kschimpf@google.com>2013-09-04 13:34:52 -0700
committerKarl Schimpf <kschimpf@google.com>2013-09-04 13:34:52 -0700
commitd8f9bfbc093e7e0c1fab719bc014ba7c6f94ad6d (patch)
treef97b1b11573bba4db6a158514f83ee4e3ef77cb3 /include
parentf8ea6b0a1ed535c10089d53c93f32cfe0117c812 (diff)
Remove ARRAY/VECTOR types from PNaCl bitcode files.
The value selector list for switch statements are represented using ARRAY/VECTOR constants, but this information is not put into the bitcode file. This CL changes the value enumerator to not emit these constants. BUG= https://code.google.com/p/nativeclient/issues/detail?id=3649 R=mseaborn@chromium.org Review URL: https://codereview.chromium.org/23653013
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h b/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h
index 59fadf26a2..32e3920b7d 100644
--- a/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h
+++ b/include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h
@@ -91,8 +91,14 @@ namespace naclbitc {
TYPE_CODE_HALF = 10, // Not used in PNaCl.
- TYPE_CODE_ARRAY = 11, // ARRAY: [numelts, eltty]
- TYPE_CODE_VECTOR = 12, // VECTOR: [numelts, eltty]
+ TYPE_CODE_ARRAY = 11, // PNaCl version 1 (early versions only)
+ // ARRAY: [numelts, eltty]
+ // Not used in PNaCl otherwise (i.e.
+ // PNaCl versions 1+).
+ TYPE_CODE_VECTOR = 12, // PNaCl version 1 (early versions only)
+ // VECTOR: [numelts, eltty]
+ // Not used in PNaCl otherwise (i.e.
+ // PNaCl versions 1+).
// These are not with the other floating point types because they're
// a late addition, and putting them in the right place breaks