summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHReader.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-04-24 22:01:00 +0000
committerDouglas Gregor <dgregor@apple.com>2009-04-24 22:01:00 +0000
commit652557839784702c9cb19dc75abde7f86d8e94a6 (patch)
tree2cb50d7c4bd3ce300fe2da5491ed8bba612dc3f2 /clang/lib/Frontend/PCHReader.cpp
parent6a966b248644d9e7d6e31d1294ff8ede92afde43 (diff)
downloadbcm5719-llvm-652557839784702c9cb19dc75abde7f86d8e94a6.tar.gz
bcm5719-llvm-652557839784702c9cb19dc75abde7f86d8e94a6.zip
Once the protocol list has been loaded from the PCH file, add it to
the Objective-C interface. llvm-svn: 69993
Diffstat (limited to 'clang/lib/Frontend/PCHReader.cpp')
-rw-r--r--clang/lib/Frontend/PCHReader.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/PCHReader.cpp b/clang/lib/Frontend/PCHReader.cpp
index 5a1e8820674..2dfb7e0a0a0 100644
--- a/clang/lib/Frontend/PCHReader.cpp
+++ b/clang/lib/Frontend/PCHReader.cpp
@@ -234,6 +234,7 @@ void PCHDeclReader::VisitObjCInterfaceDecl(ObjCInterfaceDecl *ID) {
Protocols.reserve(NumProtocols);
for (unsigned I = 0; I != NumProtocols; ++I)
Protocols.push_back(cast<ObjCProtocolDecl>(Reader.GetDecl(Record[Idx++])));
+ ID->setProtocolList(&Protocols[0], NumProtocols, Reader.getContext());
unsigned NumIvars = Record[Idx++];
llvm::SmallVector<ObjCIvarDecl *, 16> IVars;
IVars.reserve(NumIvars);
OpenPOWER on IntegriCloud