@@ -117,10 +117,9 @@ namespace {
117
117
clang::SourceLocation HashLoc, const clang::Token &IncludeTok,
118
118
StringRef FileName, bool IsAngled, clang::CharSourceRange FilenameRange,
119
119
clang::OptionalFileEntryRef File, StringRef SearchPath,
120
- StringRef RelativePath, const clang::Module *SuggestedModule,
121
- bool ModuleImported,
120
+ StringRef RelativePath, const clang::Module *Imported,
122
121
clang::SrcMgr::CharacteristicKind FileType) override {
123
- handleImport (ModuleImported ? SuggestedModule : nullptr );
122
+ handleImport (Imported );
124
123
}
125
124
126
125
void moduleImport (clang::SourceLocation ImportLoc,
@@ -294,19 +293,18 @@ class BridgingPPTracker : public clang::PPCallbacks {
294
293
bool IsAngled, clang::CharSourceRange FilenameRange,
295
294
clang::OptionalFileEntryRef File,
296
295
StringRef SearchPath, StringRef RelativePath,
297
- const clang::Module *SuggestedModule,
298
- bool ModuleImported,
296
+ const clang::Module *Imported,
299
297
clang::SrcMgr::CharacteristicKind FileType) override {
300
- if (!ModuleImported ) {
298
+ if (!Imported ) {
301
299
if (File)
302
300
Impl.BridgeHeaderFiles .insert (*File);
303
301
return ;
304
302
}
305
303
// Synthesize identifier locations.
306
304
SmallVector<clang::SourceLocation, 4 > IdLocs;
307
- for (unsigned I = 0 , E = getNumModuleIdentifiers (SuggestedModule ); I != E; ++I)
305
+ for (unsigned I = 0 , E = getNumModuleIdentifiers (Imported ); I != E; ++I)
308
306
IdLocs.push_back (HashLoc);
309
- handleImport (HashLoc, IdLocs, SuggestedModule );
307
+ handleImport (HashLoc, IdLocs, Imported );
310
308
}
311
309
312
310
void moduleImport (clang::SourceLocation ImportLoc,
0 commit comments