Rename the standard library to "Swift" (instead of "swift")

This is more in line with all other modules currently on our system.
If/when we get our final name for the language, we're at least now set
up to rename the library without /too/ much trouble. (This is mostly just
a lot of searching for "import swift", "swift.", "'swift'", and '"swift"'.
The compiler itself is pretty much just using STDLIB_NAME consistently now,
per r13758.)

<rdar://problem/15972383>

Swift SVN r14001
This commit is contained in:
Jordan Rose
2014-02-17 19:30:47 +00:00
parent 69d849772b
commit 0b2541b58f
73 changed files with 147 additions and 148 deletions

View File

@@ -275,8 +275,9 @@ void SerializedASTFile::lookupValue(Module::AccessPathTy accessPath,
SmallVectorImpl<ValueDecl*> &results) const{
assert(accessPath.size() <= 1 && "can only refer to top-level decls");
// If this import is specific to some named type or decl ("import swift.int")
// then filter out any lookups that don't match.
// If this import is specific to some named type or decl
// ("import typealias Swift.Int"), then filter out any lookups that
// don't match.
if (accessPath.size() == 1 && accessPath.front().first != name)
return;