Remove InputGraph::dump().
authorRui Ueyama <ruiu@google.com>
Tue, 13 Jan 2015 05:11:05 +0000 (05:11 +0000)
committerRui Ueyama <ruiu@google.com>
Tue, 13 Jan 2015 05:11:05 +0000 (05:11 +0000)
This is dead code.

llvm-svn: 225766

lld/include/lld/Core/InputGraph.h
lld/lib/Core/InputGraph.cpp
lld/lib/Driver/GnuLdDriver.cpp

index 56d8d51..055987b 100644 (file)
@@ -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;
index c7158b5..cdd9672 100644 (file)
@@ -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())
index 50cdeb9..70beff4 100644 (file)
@@ -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;