@@ -214,7 +214,8 @@ struct UndefinedDiag {
214
214
std::vector<File> files;
215
215
};
216
216
217
- static void reportUndefinedSymbol (COFFLinkerContext &ctx,
217
+ static void reportUndefinedSymbol (SymbolTable *symTab,
218
+ COFFLinkerContext &ctx,
218
219
const UndefinedDiag &undefDiag) {
219
220
auto diag = errorOrWarn (ctx);
220
221
diag << " undefined symbol: " << undefDiag.sym ;
@@ -236,7 +237,7 @@ static void reportUndefinedSymbol(COFFLinkerContext &ctx,
236
237
// Hints
237
238
StringRef name = undefDiag.sym ->getName ();
238
239
if (name.consume_front (" __imp_" )) {
239
- Symbol *imp = find (name);
240
+ Symbol *imp = symTab-> find (name);
240
241
if (imp && imp->isLazy ()) {
241
242
diag << " \n NOTE: a relevant symbol '" << imp->getName ()
242
243
<< " ' is available in " << toString (imp->getFile ())
@@ -413,7 +414,7 @@ void SymbolTable::reportProblemSymbols(
413
414
processFile (file, file->getSymbols ());
414
415
415
416
for (const UndefinedDiag &undefDiag : undefDiags)
416
- reportUndefinedSymbol (ctx, undefDiag);
417
+ reportUndefinedSymbol (this , ctx, undefDiag);
417
418
}
418
419
419
420
void SymbolTable::reportUnresolvable () {
0 commit comments