From Vassil Vassilev: enable Sema to deal with multiple ExternalSemaSources.

llvm-svn: 166208
This commit is contained in:
Axel Naumann
2012-10-18 19:05:02 +00:00
parent 3b8d7bc1e8
commit dd433f0b2f
9 changed files with 689 additions and 11 deletions

View File

@@ -5340,11 +5340,11 @@ static void AddClassMessageCompletions(Sema &SemaRef, Scope *S,
// If we have an external source, load the entire class method
// pool from the AST file.
if (SemaRef.ExternalSource) {
if (SemaRef.getExternalSource()) {
for (uint32_t I = 0,
N = SemaRef.ExternalSource->GetNumExternalSelectors();
N = SemaRef.getExternalSource()->GetNumExternalSelectors();
I != N; ++I) {
Selector Sel = SemaRef.ExternalSource->GetExternalSelector(I);
Selector Sel = SemaRef.getExternalSource()->GetExternalSelector(I);
if (Sel.isNull() || SemaRef.MethodPool.count(Sel))
continue;