summaryrefslogtreecommitdiffstats
path: root/lld/lib
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-01-15 07:38:32 +0000
committerRui Ueyama <ruiu@google.com>2015-01-15 07:38:32 +0000
commit7c4ba12769cf7e2347ea9021b023428cca2f5d20 (patch)
tree91881114d293a841807933aae72b7b5ecb765d6a /lld/lib
parent98501ea07a493412af2e50f51aa84dee76a1bcb2 (diff)
downloadbcm5719-llvm-7c4ba12769cf7e2347ea9021b023428cca2f5d20.tar.gz
bcm5719-llvm-7c4ba12769cf7e2347ea9021b023428cca2f5d20.zip
Remove FileNode::getPath().
Previously both FileNode and File keep filename. This patch removed that redundancy. llvm-svn: 226143
Diffstat (limited to 'lld/lib')
-rw-r--r--lld/lib/Driver/WinLinkDriver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/Driver/WinLinkDriver.cpp b/lld/lib/Driver/WinLinkDriver.cpp
index cc2722d83eb..5723ea7dc66 100644
--- a/lld/lib/Driver/WinLinkDriver.cpp
+++ b/lld/lib/Driver/WinLinkDriver.cpp
@@ -804,7 +804,7 @@ static bool hasLibrary(const PECOFFLinkingContext &ctx, File *file) {
StringRef path = file->path();
for (std::unique_ptr<InputElement> &p : ctx.getInputGraph().members())
if (auto *f = dyn_cast<FileNode>(p.get()))
- if (*f->getPath(ctx) == path)
+ if (f->getFile()->path() == path)
return true;
return false;
}
OpenPOWER on IntegriCloud