summaryrefslogtreecommitdiffstats
path: root/lld/lib/Driver/WinLinkDriver.cpp
diff options
context:
space:
mode:
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 2286e2c037f..77f3a229b08 100644
--- a/lld/lib/Driver/WinLinkDriver.cpp
+++ b/lld/lib/Driver/WinLinkDriver.cpp
@@ -1416,14 +1416,14 @@ bool WinLinkDriver::parse(int argc, const char *argv[],
if (file->parse())
return false;
ctx.getResolvableSymsFile()->add(file.get());
- ctx.getInputGraph().addInputElement(
+ ctx.getInputGraph().members().push_back(
std::unique_ptr<InputElement>(new FileNode(std::move(file))));
}
// Add the library group to the input graph.
if (!isReadingDirectiveSection) {
// Add a group-end marker.
- ctx.getInputGraph().addInputElement(llvm::make_unique<GroupEnd>(0));
+ ctx.getInputGraph().members().push_back(llvm::make_unique<GroupEnd>(0));
}
// Add the library files to the library group.
OpenPOWER on IntegriCloud