remove support for looking up global names with dot syntax. "x.y" != "y(x)" now.

Swift SVN r917
This commit is contained in:
Chris Lattner
2011-12-07 00:59:09 +00:00
parent be5120b180
commit a1b7419a36
6 changed files with 3 additions and 63 deletions

View File

@@ -157,13 +157,8 @@ void TUModuleCache::lookupValue(AccessPathTy AccessPath, Identifier Name,
if (I == TopLevelValues.end()) return;
Result.reserve(I->second.size());
for (ValueDecl *Elt : I->second) {
// Dot Lookup ignores values with non-function types.
if (LookupKind == NLKind::DotLookup && !Elt->getType()->is<FunctionType>())
continue;
for (ValueDecl *Elt : I->second)
Result.push_back(Elt);
}
}
//===----------------------------------------------------------------------===//