summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Writer.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2016-05-03 01:48:25 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2016-05-03 01:48:25 +0000
commitc357278a383287527c589c264f7644a8df266ff6 (patch)
tree26de0d9d4ff3b3b274e1060fe6bc9b1d23139442 /lld/ELF/Writer.cpp
parentb6947a58473f85cdee708d37649fed793ce49025 (diff)
downloadbcm5719-llvm-c357278a383287527c589c264f7644a8df266ff6.tar.gz
bcm5719-llvm-c357278a383287527c589c264f7644a8df266ff6.zip
ELF: Remove the function SymbolTable<ELFT>::findFile.
We already have the function SymbolBody::getSourceFile which does the same thing. llvm-svn: 268353
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