forked from OSchip/llvm-project
Read/write instantiated-from-member of EnumDecl for PCH.
llvm-svn: 107662
This commit is contained in:
parent
a96f12ee7c
commit
282b36b7f6
|
@ -178,7 +178,8 @@ void PCHDeclReader::VisitEnumDecl(EnumDecl *ED) {
|
|||
ED->setPromotionType(Reader.GetType(Record[Idx++]));
|
||||
ED->setNumPositiveBits(Record[Idx++]);
|
||||
ED->setNumNegativeBits(Record[Idx++]);
|
||||
// FIXME: C++ InstantiatedFrom
|
||||
ED->setInstantiationOfMemberEnum(
|
||||
cast_or_null<EnumDecl>(Reader.GetDecl(Record[Idx++])));
|
||||
}
|
||||
|
||||
void PCHDeclReader::VisitRecordDecl(RecordDecl *RD) {
|
||||
|
|
|
@ -178,7 +178,7 @@ void PCHDeclWriter::VisitEnumDecl(EnumDecl *D) {
|
|||
Writer.AddTypeRef(D->getPromotionType(), Record);
|
||||
Record.push_back(D->getNumPositiveBits());
|
||||
Record.push_back(D->getNumNegativeBits());
|
||||
// FIXME: C++ InstantiatedFrom
|
||||
Writer.AddDeclRef(D->getInstantiatedFromMemberEnum(), Record);
|
||||
Code = pch::DECL_ENUM;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue