mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
ClangImporter: Adjust to r355777, PCMCache => ModuleCache
Upstream Clang renamed getPCMCache() to getModuleCache() in r355777,
stopped passing it the Preprocessor passing it directly to ASTReader
instead. Adapt to those API changes.
rdar://problem/48545366
(cherry picked from commit 131cff72b2)
This commit is contained in:
@@ -759,7 +759,6 @@ bool ClangImporter::canReadPCH(StringRef PCHFilename) {
|
||||
*clangDiags,
|
||||
CI.getLangOpts(),
|
||||
clangSrcMgr,
|
||||
CI.getPCMCache(),
|
||||
headerSearchInfo,
|
||||
(clang::ModuleLoader &)CI,
|
||||
/*IILookup=*/nullptr,
|
||||
@@ -772,7 +771,7 @@ bool ClangImporter::canReadPCH(StringRef PCHFilename) {
|
||||
// Note: Reusing the PCHContainerReader or ModuleFileExtensions could be
|
||||
// dangerous.
|
||||
std::unique_ptr<clang::ASTReader> Reader(new clang::ASTReader(
|
||||
PP, &ctx, CI.getPCHContainerReader(),
|
||||
PP, CI.getModuleCache(), &ctx, CI.getPCHContainerReader(),
|
||||
CI.getFrontendOpts().ModuleFileExtensions,
|
||||
CI.getHeaderSearchOpts().Sysroot,
|
||||
/*DisableValidation*/ false,
|
||||
|
||||
Reference in New Issue
Block a user