From de9f17e943118c8c46372cae2dcd16018456e406 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 23 Apr 2009 23:18:26 +0000 Subject: Eliminate Sema::ObjCProtocols. Instead, we place ObjCProtocolDecls in their own namespace (IDNS_Protocol) and use the normal name-lookup routines to find them. Aside from the simplification this provides (one less DenseMap!), it means that protocols will be lazily deserialized from PCH files. Make the code size of the selector table block match the code size of the type and decl blocks. llvm-svn: 69939 --- clang/lib/Frontend/PCHWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Frontend') diff --git a/clang/lib/Frontend/PCHWriter.cpp b/clang/lib/Frontend/PCHWriter.cpp index 11302d136ed..985d297be15 100644 --- a/clang/lib/Frontend/PCHWriter.cpp +++ b/clang/lib/Frontend/PCHWriter.cpp @@ -1888,7 +1888,7 @@ void PCHWriter::WriteIdentifierTable(Preprocessor &PP) { } void PCHWriter::WriteSelectorTable() { - Stream.EnterSubblock(pch::SELECTOR_BLOCK_ID, 3); + Stream.EnterSubblock(pch::SELECTOR_BLOCK_ID, 2); RecordData Record; Record.push_back(pch::SELECTOR_TABLE); Record.push_back(SelectorIDs.size()); -- cgit v1.2.3