Fix build errors with clang-421.

Swift SVN r1167
This commit is contained in:
Eli Friedman
2012-03-05 19:31:12 +00:00
parent 22df6953d7
commit ddffb633eb
10 changed files with 17 additions and 20 deletions

View File

@@ -279,7 +279,7 @@ TypeAliasDecl *Module::lookupGlobalType(Identifier Name, NLKind LookupKind) {
// If we still haven't found it, scrape through all of the imports, taking the
// first match of the name.
for (auto &ImpEntry : TU.ImportedModules) {
for (auto &ImpEntry : TU.getImportedModules()) {
TAD = ImpEntry.second->lookupType(ImpEntry.first, Name, LookupKind);
if (TAD) return TAD; // If we found a match, return the decl.
}
@@ -305,7 +305,7 @@ void Module::lookupGlobalValue(Identifier Name, NLKind LookupKind,
// If we still haven't found it, scrape through all of the imports, taking the
// first match of the name.
for (auto &ImpEntry : TU.ImportedModules) {
for (auto &ImpEntry : TU.getImportedModules()) {
ImpEntry.second->lookupValue(ImpEntry.first, Name, LookupKind, Result);
if (!Result.empty()) return; // If we found a match, return the decls.
}
@@ -333,7 +333,7 @@ void Module::lookupGlobalExtensionMethods(Type BaseType, Identifier Name,
TranslationUnit &TU = *cast<TranslationUnit>(this);
// Otherwise, check our imported extensions as well.
for (auto &ImpEntry : TU.ImportedModules) {
for (auto &ImpEntry : TU.getImportedModules()) {
for (ExtensionDecl *ED : ImpEntry.second->lookupExtensions(BaseType)) {
for (Decl *Member : ED->getMembers()) {
if (ValueDecl *VD = dyn_cast<ValueDecl>(Member))