From 5acfa8427198c0653796dd74330194dae0e1ee66 Mon Sep 17 00:00:00 2001 From: Ben Langmuir Date: Mon, 3 Mar 2025 08:12:32 -0800 Subject: [PATCH] Update for change to clang's ObjectFilePCHContainerReader/Writer (cherry picked from commit e6de6d56c10e196b3af86f1cf92479a6f3b94494) --- lib/ClangImporter/ClangImporter.cpp | 3 ++- lib/IDETool/CompilerInvocation.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ClangImporter/ClangImporter.cpp b/lib/ClangImporter/ClangImporter.cpp index ee1027a5ef58b..49cc3bfbc1e83 100644 --- a/lib/ClangImporter/ClangImporter.cpp +++ b/lib/ClangImporter/ClangImporter.cpp @@ -64,7 +64,7 @@ #include "clang/Basic/TargetInfo.h" #include "clang/CAS/CASOptions.h" #include "clang/CAS/IncludeTree.h" -#include "clang/CodeGen/ObjectFilePCHContainerOperations.h" +#include "clang/CodeGen/ObjectFilePCHContainerWriter.h" #include "clang/Frontend/CompilerInvocation.h" #include "clang/Frontend/FrontendActions.h" #include "clang/Frontend/FrontendOptions.h" @@ -81,6 +81,7 @@ #include "clang/Sema/Sema.h" #include "clang/Serialization/ASTReader.h" #include "clang/Serialization/ASTWriter.h" +#include "clang/Serialization/ObjectFilePCHContainerReader.h" #include "clang/Tooling/DependencyScanning/ScanAndUpdateArgs.h" #include "llvm/ADT/IntrusiveRefCntPtr.h" #include "llvm/ADT/STLExtras.h" diff --git a/lib/IDETool/CompilerInvocation.cpp b/lib/IDETool/CompilerInvocation.cpp index e65b97fe70cb9..da49990804c78 100644 --- a/lib/IDETool/CompilerInvocation.cpp +++ b/lib/IDETool/CompilerInvocation.cpp @@ -17,8 +17,8 @@ #include "swift/Frontend/Frontend.h" #include "clang/AST/DeclObjC.h" #include "clang/Basic/TargetInfo.h" -#include "clang/CodeGen/ObjectFilePCHContainerOperations.h" #include "clang/Frontend/CompilerInstance.h" +#include "clang/Frontend/PCHContainerOperations.h" #include "clang/Frontend/TextDiagnosticBuffer.h" #include "clang/Lex/PreprocessorOptions.h" #include "clang/Serialization/ASTReader.h"