@@ -201,13 +201,16 @@ class ClangImporter final : public ClangModuleLoader {
201201 // / \param diagLoc A location to attach any diagnostics to if import fails.
202202 // / \param trackParsedSymbols If true, tracks decls and macros that were
203203 // / parsed from the bridging header.
204+ // / \param implicitImport If true, indicates that this import was implicit
205+ // / from a reference in a module file (deprecated behaviour).
204206 // /
205207 // / \returns true if there was an error importing the header.
206208 // /
207209 // / \sa getImportedHeaderModule
208210 bool importBridgingHeader (StringRef header, ModuleDecl *adapter,
209211 SourceLoc diagLoc = {},
210- bool trackParsedSymbols = false );
212+ bool trackParsedSymbols = false ,
213+ bool implicitImport = false );
211214
212215 // / Returns the module that contains imports and declarations from all loaded
213216 // / Objective-C header files.
@@ -218,6 +221,14 @@ class ClangImporter final : public ClangModuleLoader {
218221 std::string getBridgingHeaderContents (StringRef headerPath, off_t &fileSize,
219222 time_t &fileModTime);
220223
224+ // / Makes a temporary replica of the ClangImporter's CompilerInstance, reads
225+ // / an Objective-C header file into the replica and emits a PCH file of its
226+ // / content. Delegates to clang for everything except construction of the
227+ // / replica.
228+ // /
229+ // / \sa clang::GeneratePCHAction
230+ bool emitBridgingPCH (StringRef headerPath, StringRef outputPCHPath);
231+
221232 const clang::Module *getClangOwningModule (ClangNode Node) const ;
222233 bool hasTypedef (const clang::Decl *typeDecl) const ;
223234
0 commit comments