From d8f9bfbc093e7e0c1fab719bc014ba7c6f94ad6d Mon Sep 17 00:00:00 2001 From: Karl Schimpf Date: Wed, 4 Sep 2013 13:34:52 -0700 Subject: 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 --- include/llvm/Bitcode/NaCl/NaClLLVMBitCodes.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'include/llvm/Bitcode') 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 -- cgit v1.2.3-70-g09d2