Adapt llvmorg-19-init-1720-gda95d926f6fc: InclusionDirective

This commit is contained in:
Fangrui Song 2024-05-05 17:40:09 -07:00
parent f8d2778b65
commit 88e382f8a3
2 changed files with 8 additions and 2 deletions

View File

@ -1126,7 +1126,10 @@ public:
const FileEntry *file,
#endif
StringRef searchPath, StringRef relativePath,
const Module *imported,
const clang::Module *suggestedModule,
#if LLVM_VERSION_MAJOR >= 19 // llvmorg-19-init-1720-gda95d926f6fc
bool moduleImported,
#endif
SrcMgr::CharacteristicKind fileType) override {
#if LLVM_VERSION_MAJOR >= 15 // llvmorg-15-init-7692-gd79ad2f1dbc2
const FileEntry *file = fileRef ? &fileRef->getFileEntry() : nullptr;

View File

@ -187,7 +187,10 @@ public:
const FileEntry *file,
#endif
StringRef searchPath, StringRef relativePath,
const clang::Module *imported,
const clang::Module *suggestedModule,
#if LLVM_VERSION_MAJOR >= 19 // llvmorg-19-init-1720-gda95d926f6fc
bool moduleImported,
#endif
SrcMgr::CharacteristicKind fileKind) override {
(void)sm;
#if LLVM_VERSION_MAJOR >= 15 // llvmorg-15-init-7692-gd79ad2f1dbc2