Make Decl::isPrivateStdlibDecl() return true if the decl comes from the SwiftShims module.

rdar://20919984

Swift SVN r30230
This commit is contained in:
Xi Ge
2015-07-15 22:43:36 +00:00
parent b809473a8e
commit 1ca854d04f
6 changed files with 15 additions and 1 deletions

View File

@@ -1160,6 +1160,10 @@ bool Module::isStdlibModule() const {
return !getParent() && getName() == getASTContext().StdlibModuleName;
}
bool Module::isSwiftShimsModule() const {
return !getParent() && getName() == getASTContext().SwiftShimsModuleName;
}
bool Module::isBuiltinModule() const {
return this == getASTContext().TheBuiltinModule;
}