forked from OSchip/llvm-project
Read/write TagDecl's RBraceLoc from/to PCH files.
llvm-svn: 75592
This commit is contained in:
parent
23e1f1d6be
commit
664b690107
|
@ -116,6 +116,7 @@ void PCHDeclReader::VisitTagDecl(TagDecl *TD) {
|
|||
TD->setDefinition(Record[Idx++]);
|
||||
TD->setTypedefForAnonDecl(
|
||||
cast_or_null<TypedefDecl>(Reader.GetDecl(Record[Idx++])));
|
||||
TD->setRBraceLoc(SourceLocation::getFromRawEncoding(Record[Idx++]));
|
||||
}
|
||||
|
||||
void PCHDeclReader::VisitEnumDecl(EnumDecl *ED) {
|
||||
|
|
|
@ -112,6 +112,7 @@ void PCHDeclWriter::VisitTagDecl(TagDecl *D) {
|
|||
Record.push_back((unsigned)D->getTagKind()); // FIXME: stable encoding
|
||||
Record.push_back(D->isDefinition());
|
||||
Writer.AddDeclRef(D->getTypedefForAnonDecl(), Record);
|
||||
Writer.AddSourceLocation(D->getRBraceLoc(), Record);
|
||||
}
|
||||
|
||||
void PCHDeclWriter::VisitEnumDecl(EnumDecl *D) {
|
||||
|
|
Loading…
Reference in New Issue