summaryrefslogtreecommitdiffstats
path: root/lld/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-01-15 08:10:10 +0000
committerRui Ueyama <ruiu@google.com>2015-01-15 08:10:10 +0000
commit423177a54b9dd4134e9f416b9d83a16f2598c29d (patch)
treed7beb556cf91fe5aa0dd0326fcf08e1fc653f465 /lld/lib/Driver/Driver.cpp
parentdf3fca25200b3f558712b71f4575ae832afe91f3 (diff)
downloadbcm5719-llvm-423177a54b9dd4134e9f416b9d83a16f2598c29d.tar.gz
bcm5719-llvm-423177a54b9dd4134e9f416b9d83a16f2598c29d.zip
Remove WrapperNode.
WrapperNode was a useless subclass of FileNode. We should just use FileNode instead. llvm-svn: 226145
Diffstat (limited to 'lld/lib/Driver/Driver.cpp')
-rw-r--r--lld/lib/Driver/Driver.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lld/lib/Driver/Driver.cpp b/lld/lib/Driver/Driver.cpp
index 5d9d6807f4a..c21396f1d32 100644
--- a/lld/lib/Driver/Driver.cpp
+++ b/lld/lib/Driver/Driver.cpp
@@ -15,7 +15,6 @@
#include "lld/Core/PassManager.h"
#include "lld/Core/Resolver.h"
#include "lld/Driver/Driver.h"
-#include "lld/Driver/WrapperInputGraph.h"
#include "lld/Passes/RoundTripNativePass.h"
#include "lld/Passes/RoundTripYAMLPass.h"
#include "lld/ReaderWriter/Reader.h"
@@ -120,7 +119,7 @@ bool Driver::link(LinkingContext &context, raw_ostream &diagnostics) {
context.createInternalFiles(internalFiles);
for (auto i = internalFiles.rbegin(), e = internalFiles.rend(); i != e; ++i) {
context.getInputGraph().addInputElementFront(
- llvm::make_unique<WrapperNode>(std::move(*i)));
+ llvm::make_unique<FileNode>(std::move(*i)));
}
// Give target a chance to add files.
@@ -128,7 +127,7 @@ bool Driver::link(LinkingContext &context, raw_ostream &diagnostics) {
context.createImplicitFiles(implicitFiles);
for (auto i = implicitFiles.rbegin(), e = implicitFiles.rend(); i != e; ++i) {
context.getInputGraph().addInputElementFront(
- llvm::make_unique<WrapperNode>(std::move(*i)));
+ llvm::make_unique<FileNode>(std::move(*i)));
}
// Give target a chance to sort the input files.
OpenPOWER on IntegriCloud