summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-04-06 17:30:22 +0000
committerDouglas Gregor <dgregor@apple.com>2010-04-06 17:30:22 +0000
commitd720daf8bcce746e3034dc105bf7ad084ccd6d84 (patch)
tree933faab43b4149371912e3b77f75a27217be705c /clang/lib/Frontend
parentc0e8a59ac94b61328c688730a904df1c3f36f676 (diff)
downloadbcm5719-llvm-d720daf8bcce746e3034dc105bf7ad084ccd6d84.tar.gz
bcm5719-llvm-d720daf8bcce746e3034dc105bf7ad084ccd6d84.zip
Make code-completion for Objective-C message sends to "id" work in the
presence of precompiled headers by forcibly loading all of the methods we know about from the PCH file before constructing our code-completion list. llvm-svn: 100535
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r--clang/lib/Frontend/PCHReader.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/lib/Frontend/PCHReader.cpp b/clang/lib/Frontend/PCHReader.cpp
index b96c04d0a8e..41e06661fab 100644
--- a/clang/lib/Frontend/PCHReader.cpp
+++ b/clang/lib/Frontend/PCHReader.cpp
@@ -2843,6 +2843,14 @@ Selector PCHReader::DecodeSelector(unsigned ID) {
return SelectorsLoaded[Index];
}
+Selector PCHReader::GetSelector(uint32_t ID) {
+ return DecodeSelector(ID);
+}
+
+uint32_t PCHReader::GetNumKnownSelectors() {
+ return TotalNumSelectors + 1;
+}
+
DeclarationName
PCHReader::ReadDeclarationName(const RecordData &Record, unsigned &Idx) {
DeclarationName::NameKind Kind = (DeclarationName::NameKind)Record[Idx++];
OpenPOWER on IntegriCloud