aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-01-13 05:11:05 +0000
committerRui Ueyama <ruiu@google.com>2015-01-13 05:11:05 +0000
commit92e0c6910da3839db90d95384d4b9593bb3ffd17 (patch)
tree92d8af53c6ea133bce0636934de3ade6c96e6013
parentd67b533e3739ab4bd5552005203503cff2959c1d (diff)
Remove InputGraph::dump().
This is dead code. git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@225766 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/lld/Core/InputGraph.h3
-rw-r--r--lib/Core/InputGraph.cpp7
-rw-r--r--lib/Driver/GnuLdDriver.cpp3
3 files changed, 0 insertions, 13 deletions
diff --git a/include/lld/Core/InputGraph.h b/include/lld/Core/InputGraph.h
index 56d8d5126..055987b47 100644
--- a/include/lld/Core/InputGraph.h
+++ b/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/lib/Core/InputGraph.cpp b/lib/Core/InputGraph.cpp
index c7158b5a9..cdd9672de 100644
--- a/lib/Core/InputGraph.cpp
+++ b/lib/Core/InputGraph.cpp
@@ -48,13 +48,6 @@ void InputGraph::addInputElementFront(std::unique_ptr<InputElement> ie) {
_inputArgs.insert(_inputArgs.begin(), std::move(ie));
}
-bool InputGraph::dump(raw_ostream &diagnostics) {
- for (std::unique_ptr<InputElement> &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/lib/Driver/GnuLdDriver.cpp b/lib/Driver/GnuLdDriver.cpp
index 50cdeb967..70beff44b 100644
--- a/lib/Driver/GnuLdDriver.cpp
+++ b/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;