diff options
| author | Rui Ueyama <ruiu@google.com> | 2015-01-15 07:20:39 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2015-01-15 07:20:39 +0000 |
| commit | cdb1071be52ac6991903075bf8563896eb9394a5 (patch) | |
| tree | b9d8d60e9e9cc3040dc5bb0a9c09dbf265a0edc0 /lld/lib/Core | |
| parent | 56206368f50070dd89bb4602016e4c4207bd4499 (diff) | |
| download | bcm5719-llvm-cdb1071be52ac6991903075bf8563896eb9394a5.tar.gz bcm5719-llvm-cdb1071be52ac6991903075bf8563896eb9394a5.zip | |
Remove InputGraph::size().
llvm-svn: 226140
Diffstat (limited to 'lld/lib/Core')
| -rw-r--r-- | lld/lib/Core/InputGraph.cpp | 8 | ||||
| -rw-r--r-- | lld/lib/Core/Resolver.cpp | 4 |
2 files changed, 2 insertions, 10 deletions
diff --git a/lld/lib/Core/InputGraph.cpp b/lld/lib/Core/InputGraph.cpp index 2041ba513da..b5b68da88bc 100644 --- a/lld/lib/Core/InputGraph.cpp +++ b/lld/lib/Core/InputGraph.cpp @@ -13,14 +13,6 @@ using namespace lld; -void InputGraph::addInputElement(std::unique_ptr<InputElement> ie) { - _inputArgs.push_back(std::move(ie)); -} - -void InputGraph::addInputElementFront(std::unique_ptr<InputElement> ie) { - _inputArgs.insert(_inputArgs.begin(), std::move(ie)); -} - std::error_code FileNode::parse(const LinkingContext &, raw_ostream &) { if (_file) if (std::error_code ec = _file->parse()) diff --git a/lld/lib/Core/Resolver.cpp b/lld/lib/Core/Resolver.cpp index 49d3f61402c..ce398ff1af1 100644 --- a/lld/lib/Core/Resolver.cpp +++ b/lld/lib/Core/Resolver.cpp @@ -233,7 +233,7 @@ void Resolver::addAtoms(const std::vector<const DefinedAtom *> &newAtoms) { // undefined symbol. bool Resolver::undefinesAdded(int begin, int end) { std::vector<std::unique_ptr<InputElement>> &inputs = - _context.getInputGraph().inputElements(); + _context.getInputGraph().members(); for (int i = begin; i < end; ++i) if (FileNode *node = dyn_cast<FileNode>(inputs[i].get())) if (_newUndefinesAdded[node->getFile()]) @@ -243,7 +243,7 @@ bool Resolver::undefinesAdded(int begin, int end) { File *Resolver::getFile(int &index, int &groupLevel) { std::vector<std::unique_ptr<InputElement>> &inputs - = _context.getInputGraph().inputElements(); + = _context.getInputGraph().members(); if ((size_t)index >= inputs.size()) return nullptr; if (GroupEnd *group = dyn_cast<GroupEnd>(inputs[index].get())) { |

