[ParseableInterface][test] Update SDKDependencies.swift test to explicitly check serialized dependencies

Also use the existing check-is-forwarding-module.py script to check for
forwarding modules, rather than doing it manually.
This commit is contained in:
Nathan Hawes
2019-03-29 15:02:58 -07:00
parent 37328020df
commit accc64719e
2 changed files with 60 additions and 16 deletions

View File

@@ -359,9 +359,6 @@ class swift::ParseableInterfaceBuilder {
/// Determines if the dependency with the provided path is a swiftmodule in
/// either the module cache or prebuilt module cache
bool isCachedModule(StringRef DepName) const {
if (moduleCachePath.empty() && prebuiltCachePath.empty())
return false;
auto Ext = llvm::sys::path::extension(DepName);
auto Ty = file_types::lookupTypeForExtension(Ext);