summaryrefslogtreecommitdiffstats
path: root/lld/lib/Driver/Driver.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/Driver.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/Driver.cpp')
-rw-r--r--lld/lib/Driver/Driver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/lib/Driver/Driver.cpp b/lld/lib/Driver/Driver.cpp
index d55bc4ae2f5..4d0fe6ed0e8 100644
--- a/lld/lib/Driver/Driver.cpp
+++ b/lld/lib/Driver/Driver.cpp
@@ -49,13 +49,13 @@ FileVector parseMemberFiles(FileVector &files) {
return members;
}
-FileVector parseFile(LinkingContext &ctx, StringRef path, bool wholeArchive) {
+FileVector loadFile(LinkingContext &ctx, StringRef path, bool wholeArchive) {
ErrorOr<std::unique_ptr<MemoryBuffer>> mb
= MemoryBuffer::getFileOrSTDIN(path);
if (std::error_code ec = mb.getError())
return makeErrorFile(path, ec);
std::vector<std::unique_ptr<File>> files;
- if (std::error_code ec = ctx.registry().parseFile(std::move(mb.get()), files))
+ if (std::error_code ec = ctx.registry().loadFile(std::move(mb.get()), files))
return makeErrorFile(path, ec);
if (wholeArchive)
return parseMemberFiles(files);
OpenPOWER on IntegriCloud