From 73360e1bbbb17d9fd9f95943d928663c36d12106 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Tue, 29 Sep 2009 19:43:35 +0000 Subject: Introduce ObjCProtocolListLoc for keeping source location information for protocol references. llvm-svn: 83094 --- clang/lib/Frontend/PCHReaderDecl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'clang/lib/Frontend/PCHReaderDecl.cpp') diff --git a/clang/lib/Frontend/PCHReaderDecl.cpp b/clang/lib/Frontend/PCHReaderDecl.cpp index 77721bdf629..550f4dba799 100644 --- a/clang/lib/Frontend/PCHReaderDecl.cpp +++ b/clang/lib/Frontend/PCHReaderDecl.cpp @@ -179,6 +179,12 @@ void TypeLocReader::VisitDefaultTypeSpecLoc(DefaultTypeSpecLoc TyLoc) { void TypeLocReader::VisitTypedefLoc(TypedefLoc TyLoc) { TyLoc.setNameLoc(SourceLocation::getFromRawEncoding(Record[Idx++])); } +void TypeLocReader::VisitObjCProtocolListLoc(ObjCProtocolListLoc TyLoc) { + TyLoc.setLAngleLoc(SourceLocation::getFromRawEncoding(Record[Idx++])); + TyLoc.setRAngleLoc(SourceLocation::getFromRawEncoding(Record[Idx++])); + for (unsigned i = 0, e = TyLoc.getNumProtocols(); i != e; ++i) + TyLoc.setProtocolLoc(i, SourceLocation::getFromRawEncoding(Record[Idx++])); +} void TypeLocReader::VisitPointerLoc(PointerLoc TyLoc) { TyLoc.setStarLoc(SourceLocation::getFromRawEncoding(Record[Idx++])); } -- cgit v1.2.3