[lld] r213818 - [PECOFF] Simplify.
Rui Ueyama
ruiu at google.com
Wed Jul 23 16:47:28 PDT 2014
Author: ruiu
Date: Wed Jul 23 18:47:28 2014
New Revision: 213818
URL: http://llvm.org/viewvc/llvm-project?rev=213818&view=rev
Log:
[PECOFF] Simplify.
insertElementAt(x, END) is the same as addInputElement(x).
Modified:
lld/trunk/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp
Modified: lld/trunk/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp?rev=213818&r1=213817&r2=213818&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp (original)
+++ lld/trunk/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp Wed Jul 23 18:47:28 2014
@@ -108,15 +108,13 @@ bool PECOFFLinkingContext::createImplici
std::unique_ptr<File> linkerGeneratedSymFile(
new pecoff::LinkerGeneratedSymbolFile(*this));
fileNode->appendInputFile(std::move(linkerGeneratedSymFile));
- getInputGraph().insertElementAt(std::move(fileNode),
- InputGraph::Position::END);
+ getInputGraph().addInputElement(std::move(fileNode));
// Create a file for _imp_ symbols.
std::unique_ptr<SimpleFileNode> impFileNode(new SimpleFileNode("imp"));
impFileNode->appendInputFile(
std::unique_ptr<File>(new pecoff::LocallyImportedSymbolFile(*this)));
- getInputGraph().insertElementAt(std::move(impFileNode),
- InputGraph::Position::END);
+ getInputGraph().addInputElement(std::move(impFileNode));
std::shared_ptr<pecoff::ResolvableSymbols> syms(
new pecoff::ResolvableSymbols());
More information about the llvm-commits
mailing list