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/ReaderWriter | |
| 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/ReaderWriter')
| -rw-r--r-- | lld/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lld/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp b/lld/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp index 24fae0a61a1..de4ddca44b7 100644 --- a/lld/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp +++ b/lld/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp @@ -107,21 +107,23 @@ void PECOFFLinkingContext::addLibraryFile(std::unique_ptr<FileNode> file) { bool PECOFFLinkingContext::createImplicitFiles( std::vector<std::unique_ptr<File>> &) { pecoff::ResolvableSymbols* syms = getResolvableSymsFile(); + std::vector<std::unique_ptr<InputElement>> &members + = getInputGraph().members(); // Create a file for the entry point function. std::unique_ptr<FileNode> entry(new FileNode( llvm::make_unique<pecoff::EntryPointFile>(*this, syms))); - getInputGraph().addInputElementFront(std::move(entry)); + members.insert(members.begin(), std::move(entry)); // Create a file for __ImageBase. std::unique_ptr<FileNode> fileNode(new FileNode( llvm::make_unique<pecoff::LinkerGeneratedSymbolFile>(*this))); - getInputGraph().addInputElement(std::move(fileNode)); + members.push_back(std::move(fileNode)); // Create a file for _imp_ symbols. std::unique_ptr<FileNode> impFileNode(new FileNode( llvm::make_unique<pecoff::LocallyImportedSymbolFile>(*this))); - getInputGraph().addInputElement(std::move(impFileNode)); + members.push_back(std::move(impFileNode)); // Create a file for dllexported symbols. std::unique_ptr<FileNode> exportNode(new FileNode( |

