[Modules] Use global index to improve typo correction performance

Typo correction for an unqualified name needs to walk through all of the identifier tables of all modules.
When we have a global index, just walk its identifier table only.

rdar://13425732

llvm-svn: 179730
This commit is contained in:
Argyrios Kyrtzidis
2013-04-17 22:10:55 +00:00
parent 4e88ce68ae
commit 9aca3c61c0
6 changed files with 43 additions and 4 deletions

View File

@@ -65,7 +65,7 @@ namespace {
};
}
IdentifierIterator *IdentifierInfoLookup::getIdentifiers() const {
IdentifierIterator *IdentifierInfoLookup::getIdentifiers() {
return new EmptyLookupIterator();
}