summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHWriter.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-04-23 23:18:26 +0000
committerDouglas Gregor <dgregor@apple.com>2009-04-23 23:18:26 +0000
commitde9f17e943118c8c46372cae2dcd16018456e406 (patch)
treea3295ed8abea4170e8fc74683d029481fd4b19cf /clang/lib/Frontend/PCHWriter.cpp
parent838cbe19b70b8e0b5d280ed8f8be6b52eeeaf59a (diff)
downloadbcm5719-llvm-de9f17e943118c8c46372cae2dcd16018456e406.tar.gz
bcm5719-llvm-de9f17e943118c8c46372cae2dcd16018456e406.zip
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
Diffstat (limited to 'clang/lib/Frontend/PCHWriter.cpp')
-rw-r--r--clang/lib/Frontend/PCHWriter.cpp2
1 files changed, 1 insertions, 1 deletions
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());
OpenPOWER on IntegriCloud