Implemented serialization for TypedefType.

llvm-svn: 43423
This commit is contained in:
Ted Kremenek 2007-10-28 21:21:04 +00:00
parent 387204749b
commit b6fafb6bf0
2 changed files with 15 additions and 0 deletions

View File

@ -203,3 +203,15 @@ FunctionTypeProto* FunctionTypeProto::Materialize(llvm::Deserializer& D) {
return FTP;
}
void TypedefType::Emit(llvm::Serializer& S) const {
EmitTypeInternal(S);
S.EmitPtr(Decl);
}
TypedefType* TypedefType::Materialize(llvm::Deserializer& D) {
TypedefType* T = new TypedefType(NULL,QualType());
T->ReadTypeInternal(D);
D.ReadPtr(T->Decl);
return T;
}

View File

@ -823,6 +823,9 @@ public:
static bool classof(const Type *T) { return T->getTypeClass() == TypeName; }
static bool classof(const TypedefType *) { return true; }
void Emit(llvm::Serializer& S) const;
static TypedefType* Materialize(llvm::Deserializer& D);
};
/// TypeOfExpr (GCC extension).