diff options
| author | Rui Ueyama <ruiu@google.com> | 2015-01-15 08:18:14 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2015-01-15 08:18:14 +0000 |
| commit | 861c2d6c3a5f78d9b56999868b4ca2a0dc31c81c (patch) | |
| tree | 172a1ed01e13cac86983955a70223751ae657b0c /lld/lib/Driver/Driver.cpp | |
| parent | 423177a54b9dd4134e9f416b9d83a16f2598c29d (diff) | |
| download | bcm5719-llvm-861c2d6c3a5f78d9b56999868b4ca2a0dc31c81c.tar.gz bcm5719-llvm-861c2d6c3a5f78d9b56999868b4ca2a0dc31c81c.zip | |
Remove InputGraph::addInputElement{,Front}.
They were the last member functions of InputGraph (besides members()).
Now InputGraph is just a container of a vector. We are ready to replace
InputGraph with plain File vector.
llvm-svn: 226146
Diffstat (limited to 'lld/lib/Driver/Driver.cpp')
| -rw-r--r-- | lld/lib/Driver/Driver.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lld/lib/Driver/Driver.cpp b/lld/lib/Driver/Driver.cpp index c21396f1d32..eac75bfc6aa 100644 --- a/lld/lib/Driver/Driver.cpp +++ b/lld/lib/Driver/Driver.cpp @@ -118,16 +118,16 @@ bool Driver::link(LinkingContext &context, raw_ostream &diagnostics) { std::vector<std::unique_ptr<File>> internalFiles; context.createInternalFiles(internalFiles); for (auto i = internalFiles.rbegin(), e = internalFiles.rend(); i != e; ++i) { - context.getInputGraph().addInputElementFront( - llvm::make_unique<FileNode>(std::move(*i))); + auto &members = context.getInputGraph().members(); + members.insert(members.begin(), llvm::make_unique<FileNode>(std::move(*i))); } // Give target a chance to add files. std::vector<std::unique_ptr<File>> implicitFiles; context.createImplicitFiles(implicitFiles); for (auto i = implicitFiles.rbegin(), e = implicitFiles.rend(); i != e; ++i) { - context.getInputGraph().addInputElementFront( - llvm::make_unique<FileNode>(std::move(*i))); + auto &members = context.getInputGraph().members(); + members.insert(members.begin(), llvm::make_unique<FileNode>(std::move(*i))); } // Give target a chance to sort the input files. |

