Implemented serialization for TypedefType.
llvm-svn: 43423
This commit is contained in:
parent
387204749b
commit
b6fafb6bf0
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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).
|
||||
|
|
Loading…
Reference in New Issue