aboutsummaryrefslogtreecommitdiff
path: root/lib/Bitcode/NaCl/Writer/NaClBitcodeWriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Bitcode/NaCl/Writer/NaClBitcodeWriter.cpp')
-rw-r--r--lib/Bitcode/NaCl/Writer/NaClBitcodeWriter.cpp21
1 files changed, 4 insertions, 17 deletions
diff --git a/lib/Bitcode/NaCl/Writer/NaClBitcodeWriter.cpp b/lib/Bitcode/NaCl/Writer/NaClBitcodeWriter.cpp
index 3d5d50cc20..ec13266221 100644
--- a/lib/Bitcode/NaCl/Writer/NaClBitcodeWriter.cpp
+++ b/lib/Bitcode/NaCl/Writer/NaClBitcodeWriter.cpp
@@ -253,23 +253,10 @@ static void WriteTypeTable(const NaClValueEnumerator &VE,
}
case Type::StructTyID:
report_fatal_error("Struct types are not supported in PNaCl bitcode");
- case Type::ArrayTyID: {
- ArrayType *AT = cast<ArrayType>(T);
- // ARRAY: [numelts, eltty]
- Code = naclbitc::TYPE_CODE_ARRAY;
- TypeVals.push_back(AT->getNumElements());
- TypeVals.push_back(VE.getTypeID(AT->getElementType()));
- AbbrevToUse = TYPE_ARRAY_ABBREV;
- break;
- }
- case Type::VectorTyID: {
- VectorType *VT = cast<VectorType>(T);
- // VECTOR [numelts, eltty]
- Code = naclbitc::TYPE_CODE_VECTOR;
- TypeVals.push_back(VT->getNumElements());
- TypeVals.push_back(VE.getTypeID(VT->getElementType()));
- break;
- }
+ case Type::ArrayTyID:
+ report_fatal_error("Array types are not supported in PNaCl bitcode");
+ case Type::VectorTyID:
+ report_fatal_error("Vector types are not supported in PNaCl bitcode");
}
// Emit the finished record.