summaryrefslogtreecommitdiffstats
path: root/lld/lib/Driver/WinLinkInputGraph.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-01-13 04:33:07 +0000
committerRui Ueyama <ruiu@google.com>2015-01-13 04:33:07 +0000
commite8ecb2b1445a1960a77f4b446987430f46375eb4 (patch)
tree629318f1f5273e770e34a846e291dec6b51c0c5b /lld/lib/Driver/WinLinkInputGraph.cpp
parent7cceba5d767a0101303f616c1444142d43faf385 (diff)
downloadbcm5719-llvm-e8ecb2b1445a1960a77f4b446987430f46375eb4.tar.gz
bcm5719-llvm-e8ecb2b1445a1960a77f4b446987430f46375eb4.zip
Convert other drivers to use WrapperNode.
llvm-svn: 225764
Diffstat (limited to 'lld/lib/Driver/WinLinkInputGraph.cpp')
-rw-r--r--lld/lib/Driver/WinLinkInputGraph.cpp39
1 files changed, 0 insertions, 39 deletions
diff --git a/lld/lib/Driver/WinLinkInputGraph.cpp b/lld/lib/Driver/WinLinkInputGraph.cpp
deleted file mode 100644
index 792e192429c..00000000000
--- a/lld/lib/Driver/WinLinkInputGraph.cpp
+++ /dev/null
@@ -1,39 +0,0 @@
-//===- lib/Driver/WinLinkInputGraph.cpp -----------------------------------===//
-//
-// The LLVM Linker
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include "lld/Driver/WinLinkInputGraph.h"
-
-namespace lld {
-
-/// \brief Parse the input file to lld::File.
-std::error_code PECOFFFileNode::parse(const LinkingContext &ctx,
- raw_ostream &diagnostics) {
- if (_parsed)
- return std::error_code();
- _parsed = true;
- ErrorOr<StringRef> filePath = getPath(ctx);
- if (std::error_code ec = filePath.getError()) {
- diagnostics << "File not found: " << _path << "\n";
- return ec;
- }
-
- ErrorOr<std::unique_ptr<MemoryBuffer>> mb =
- MemoryBuffer::getFileOrSTDIN(*filePath);
- if (std::error_code ec = mb.getError()) {
- diagnostics << "Cannot open file: " << *filePath << "\n";
- return ec;
- }
-
- if (ctx.logInputFiles())
- diagnostics << *filePath << "\n";
-
- return ctx.registry().parseFile(std::move(mb.get()), _files);
-}
-
-} // end anonymous namespace
OpenPOWER on IntegriCloud