[cxx-interop] Refactor: do not rely on Clang module importer being available

This makes sure that we can emit a pch from a C++ header that uses `CF_OPTIONS`.

rdar://112225263
This commit is contained in:
Egor Zhdan
2023-09-15 17:10:04 +01:00
parent f7c2257f51
commit 6a2f10a388
6 changed files with 27 additions and 20 deletions

View File

@@ -306,9 +306,6 @@ public:
virtual EffectiveClangContext getEffectiveClangContext(
const NominalTypeDecl *nominal) = 0;
virtual const clang::TypedefType *
getTypeDefForCXXCFOptionsDefinition(const clang::Decl *candidateDecl) = 0;
virtual SourceLoc importSourceLocation(clang::SourceLocation loc) = 0;
};