diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-01-25 00:49:42 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-01-25 00:49:42 +0000 |
commit | e171601ff68e51a10ac907299190a23076eb5002 (patch) | |
tree | 3381720e8a499a8f4c98a66dad0f084dcc10d168 /clang/lib/Frontend/ChainedIncludesSource.cpp | |
parent | 44d2973b6f39040d012e96ebb422b60e2a4358c1 (diff) | |
download | llvm-e171601ff68e51a10ac907299190a23076eb5002.zip llvm-e171601ff68e51a10ac907299190a23076eb5002.tar.gz llvm-e171601ff68e51a10ac907299190a23076eb5002.tar.bz2 |
Rework the external Sema source's ReadMethodPool() so that it doesn't
return pre-built lists. Instead, it feeds the methods it deserializes
to Sema so that Sema can unique them, which keeps the chains shorter.
llvm-svn: 148889
Diffstat (limited to 'clang/lib/Frontend/ChainedIncludesSource.cpp')
-rw-r--r-- | clang/lib/Frontend/ChainedIncludesSource.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Frontend/ChainedIncludesSource.cpp b/clang/lib/Frontend/ChainedIncludesSource.cpp index 9694bc0..45cf672 100644 --- a/clang/lib/Frontend/ChainedIncludesSource.cpp +++ b/clang/lib/Frontend/ChainedIncludesSource.cpp @@ -231,9 +231,8 @@ void ChainedIncludesSource::InitializeSema(Sema &S) { void ChainedIncludesSource::ForgetSema() { return getFinalReader().ForgetSema(); } -std::pair<ObjCMethodList,ObjCMethodList> -ChainedIncludesSource::ReadMethodPool(Selector Sel) { - return getFinalReader().ReadMethodPool(Sel); +void ChainedIncludesSource::ReadMethodPool(Selector Sel) { + getFinalReader().ReadMethodPool(Sel); } bool ChainedIncludesSource::LookupUnqualified(LookupResult &R, Scope *S) { return getFinalReader().LookupUnqualified(R, S); |