From d2838c4958758a9723fcf781d4187471269e0635 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Tue, 13 Jan 2015 05:11:05 +0000 Subject: [PATCH] Remove InputGraph::dump(). This is dead code. llvm-svn: 225766 --- lld/include/lld/Core/InputGraph.h | 3 --- lld/lib/Core/InputGraph.cpp | 7 ------- lld/lib/Driver/GnuLdDriver.cpp | 3 --- 3 files changed, 13 deletions(-) diff --git a/lld/include/lld/Core/InputGraph.h b/lld/include/lld/Core/InputGraph.h index 56d8d51..055987b 100644 --- a/lld/include/lld/Core/InputGraph.h +++ b/lld/include/lld/Core/InputGraph.h @@ -83,9 +83,6 @@ public: // \brief Returns the number of input files. size_t size() const { return _inputArgs.size(); } - /// \brief Dump the input Graph - bool dump(raw_ostream &diagnostics = llvm::errs()); - protected: // Input arguments InputElementVectorT _inputArgs; diff --git a/lld/lib/Core/InputGraph.cpp b/lld/lib/Core/InputGraph.cpp index c7158b5..cdd9672 100644 --- a/lld/lib/Core/InputGraph.cpp +++ b/lld/lib/Core/InputGraph.cpp @@ -48,13 +48,6 @@ void InputGraph::addInputElementFront(std::unique_ptr ie) { _inputArgs.insert(_inputArgs.begin(), std::move(ie)); } -bool InputGraph::dump(raw_ostream &diagnostics) { - for (std::unique_ptr &ie : _inputArgs) - if (!ie->dump(diagnostics)) - return false; - return true; -} - /// \brief Helper functions for the resolver InputElement *InputGraph::getNextInputElement() { if (_nextElementIndex >= _inputArgs.size()) diff --git a/lld/lib/Driver/GnuLdDriver.cpp b/lld/lib/Driver/GnuLdDriver.cpp index 50cdeb9..70beff4 100644 --- a/lld/lib/Driver/GnuLdDriver.cpp +++ b/lld/lib/Driver/GnuLdDriver.cpp @@ -689,9 +689,6 @@ bool GnuLdDriver::parse(int argc, const char *argv[], } } - if (ctx->outputFileType() == LinkingContext::OutputFileType::YAML) - inputGraph->dump(diagnostics); - // Validate the combination of options used. if (!ctx->validate(diagnostics)) return false; -- 2.7.4