lib/Frontend/ModuleInterfaceLoader.cpp
StringRef InterfaceSubContextDelegateImpl::computeCachedOutputPath(
                             StringRef moduleName,
                             StringRef useInterfacePath,
                             llvm::SmallString<256> &OutPath,
                             StringRef &CacheHash) {
  OutPath = genericSubInvocation.getClangModuleCachePath();
  llvm::sys::path::append(OutPath, moduleName);
  OutPath.append("-");
  auto hashStart = OutPath.size();
  OutPath.append(getCacheHash(useInterfacePath));
  CacheHash = OutPath.str().substr(hashStart);
  OutPath.append(".");
  auto OutExt = file_types::getExtension(file_types::TY_SwiftModuleFile);
  OutPath.append(OutExt);
  return OutPath.str();
}
/// Calculate an output filename in \p genericSubInvocation's cache path that
/// includes a hash of relevant key data.
Calculate an output filename in \p genericSubInvocation's cache path that
includes a hash of relevant key data.
Calculate an output filename in \ p genericSubInvocation ' s cache path that includes a hash of relevant key data .
StringRef InterfaceSubContextDelegateImpl::computeCachedOutputPath(
                             StringRef moduleName,
                             StringRef useInterfacePath,
                             llvm::SmallString<256> &OutPath,
                             StringRef &CacheHash) {
  OutPath = genericSubInvocation.getClangModuleCachePath();
  llvm::sys::path::append(OutPath, moduleName);
  OutPath.append("-");
  auto hashStart = OutPath.size();
  OutPath.append(getCacheHash(useInterfacePath));
  CacheHash = OutPath.str().substr(hashStart);
  OutPath.append(".");
  auto OutExt = file_types::getExtension(file_types::TY_SwiftModuleFile);
  OutPath.append(OutExt);
  return OutPath.str();
}
StringRef InterfaceSubContextDelegateImpl :: computeCachedOutputPath ( StringRef moduleName , StringRef useInterfacePath , llvm :: SmallString < 256 > & OutPath , StringRef & CacheHash ) { OutPath = genericSubInvocation . getClangModuleCachePath ( ) ; llvm :: sys :: path :: append ( OutPath , moduleName ) ; OutPath . append ( " " ) ; auto hashStart = OutPath . size ( ) ; OutPath . append ( getCacheHash ( useInterfacePath ) ) ; CacheHash = OutPath . str ( ) . substr ( hashStart ) ; OutPath . append ( " " ) ; auto OutExt = file_types :: getExtension ( file_types :: TY_SwiftModuleFile ) ; OutPath . append ( OutExt ) ; return OutPath . str ( ) ; }
Calculate an output filename in \p genericSubInvocation's cache path that
includes a hash of relevant key data.
Calculate an output filename in \ p genericSubInvocation ' s cache path that includes a hash of relevant key data .