mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Make Decl::isPrivateStdlibDecl() return true if the decl comes from the SwiftShims module.
rdar://20919984 Swift SVN r30230
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user