[AST] For USR generation, ignore symbols coming from the builtin module.

Swift SVN r17858
This commit is contained in:
Argyrios Kyrtzidis
2014-05-11 00:00:57 +00:00
parent 761c627b38
commit 918f373d97
3 changed files with 10 additions and 0 deletions

View File

@@ -1070,6 +1070,10 @@ bool Module::isStdlibModule() const {
return !getParent() && Name == Ctx.StdlibModuleName;
}
bool Module::isBuiltinModule() const {
return this == Ctx.TheBuiltinModule;
}
bool Module::isSystemModule() const {
if (isStdlibModule())
return true;