summaryrefslogtreecommitdiffstats
path: root/lld/lib/Driver/WinLinkDriver.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-01-15 08:31:46 +0000
committerRui Ueyama <ruiu@google.com>2015-01-15 08:31:46 +0000
commit61635440a935fd8192fcc3c76bf6bac7b68166b3 (patch)
tree2ce0798187d39d6a8baef0726f9fd8f381ce9067 /lld/lib/Driver/WinLinkDriver.cpp
parent861c2d6c3a5f78d9b56999868b4ca2a0dc31c81c (diff)
downloadbcm5719-llvm-61635440a935fd8192fcc3c76bf6bac7b68166b3.tar.gz
bcm5719-llvm-61635440a935fd8192fcc3c76bf6bac7b68166b3.zip
Rename InputElement Node.
InputElement was named that because it's an element of an InputGraph. It's losing the origin because the InputGraph is now being removed. InputElement's subclass is FileNode, that naming inconsistency needed to be fixed. llvm-svn: 226147
Diffstat (limited to 'lld/lib/Driver/WinLinkDriver.cpp')
-rw-r--r--lld/lib/Driver/WinLinkDriver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/lib/Driver/WinLinkDriver.cpp b/lld/lib/Driver/WinLinkDriver.cpp
index 77f3a229b08..9aa447ac1ec 100644
--- a/lld/lib/Driver/WinLinkDriver.cpp
+++ b/lld/lib/Driver/WinLinkDriver.cpp
@@ -801,7 +801,7 @@ parseArgs(int argc, const char **argv, PECOFFLinkingContext &ctx,
// graph.
static bool hasLibrary(const PECOFFLinkingContext &ctx, File *file) {
StringRef path = file->path();
- for (std::unique_ptr<InputElement> &p : ctx.getInputGraph().members())
+ for (std::unique_ptr<Node> &p : ctx.getInputGraph().members())
if (auto *f = dyn_cast<FileNode>(p.get()))
if (f->getFile()->path() == path)
return true;
@@ -1417,7 +1417,7 @@ bool WinLinkDriver::parse(int argc, const char *argv[],
return false;
ctx.getResolvableSymsFile()->add(file.get());
ctx.getInputGraph().members().push_back(
- std::unique_ptr<InputElement>(new FileNode(std::move(file))));
+ std::unique_ptr<Node>(new FileNode(std::move(file))));
}
// Add the library group to the input graph.
OpenPOWER on IntegriCloud