summaryrefslogtreecommitdiffstats
path: root/lld/ELF/MapFile.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-11-29 22:47:35 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-11-29 22:47:35 +0000
commitdfebd3601de1d80fddab606636e8bff1c96dace8 (patch)
treeb97ccf0e179075c5ba629f59003acd7abc4c4dd9 /lld/ELF/MapFile.cpp
parent52d036e6935f9340ca2d7502842d515accb02ee5 (diff)
downloadbcm5719-llvm-dfebd3601de1d80fddab606636e8bff1c96dace8.tar.gz
bcm5719-llvm-dfebd3601de1d80fddab606636e8bff1c96dace8.zip
Use Symbol::File directly.
We are already paying the cost of storing a InputFile in every Symbol, so use it uniformly. llvm-svn: 319378
Diffstat (limited to 'lld/ELF/MapFile.cpp')
-rw-r--r--lld/ELF/MapFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/MapFile.cpp b/lld/ELF/MapFile.cpp
index b1c84075ddd..47156eeceec 100644
--- a/lld/ELF/MapFile.cpp
+++ b/lld/ELF/MapFile.cpp
@@ -52,7 +52,7 @@ static std::vector<Defined *> getSymbols() {
for (InputFile *File : ObjectFiles)
for (Symbol *B : File->getSymbols())
if (auto *DR = dyn_cast<Defined>(B))
- if (DR->getFile() == File && !DR->isSection() && DR->Section &&
+ if (DR->File == File && !DR->isSection() && DR->Section &&
DR->Section->Live)
V.push_back(DR);
return V;
OpenPOWER on IntegriCloud