summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Writer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/Writer.cpp')
-rw-r--r--lld/ELF/Writer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index 093fac8dfcb..7a4ec04c3df 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -785,7 +785,7 @@ static void reportUndefined(SymbolTable<ELFT> &Symtab, SymbolBody *Sym) {
}
std::string Msg = "undefined symbol: " + Sym->getName().str();
- if (InputFile *File = Symtab.findFile(Sym))
+ if (InputFile *File = Sym->getSourceFile<ELFT>())
Msg += " in " + File->getName().str();
if (Config->NoinhibitExec)
warning(Msg);
OpenPOWER on IntegriCloud