aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-10-26 22:00:08 +0000
committerTed Kremenek <kremenek@apple.com>2007-10-26 22:00:08 +0000
commitbc26c58f3d44539c8172d88da44d46525afdaf29 (patch)
tree82940166b9eab754e1554e844599143861d81ccf
parentbef1185418705e16012b3dd50cd7c260c8d6b79c (diff)
Completed serialization of ConstantArrayTypes (now that APInt serialization is in place).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43407 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--AST/TypeSerialization.cpp18
1 files changed, 5 insertions, 13 deletions
diff --git a/AST/TypeSerialization.cpp b/AST/TypeSerialization.cpp
index 3e6ad49bec..1a685680d3 100644
--- a/AST/TypeSerialization.cpp
+++ b/AST/TypeSerialization.cpp
@@ -101,27 +101,19 @@ void ArrayType::ReadArrayTypeInternal(llvm::Deserializer& D) {
}
void ConstantArrayType::Emit(llvm::Serializer& S) const {
-#if 0
- // FIXME: APInt serialization
- S.Emit(Size);
-#endif
EmitArrayTypeInternal(S);
+ S.Emit(Size);
}
ConstantArrayType* ConstantArrayType::Materialize(llvm::Deserializer& D) {
-#if 0
- llvm::APInt x = S.ReadVal<llvm::APInt>(D);
-
// "Default" construct the array.
ConstantArrayType* T =
- new ConstantArrayType(QualType(), QualType(), x, ArrayType::Normal, 0);
+ new ConstantArrayType(QualType(), QualType(), llvm::APInt(),
+ ArrayType::Normal, 0);
// Deserialize the internal values.
- T->ReadArrayTypeInternal(D);
+ T->ReadArrayTypeInternal(D);
+ D.Read(T->Size);
return T;
-#else
- return NULL;
-#endif
-
}