summaryrefslogtreecommitdiffstats
path: root/lld/lib/Driver/WinLinkDriver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/lib/Driver/WinLinkDriver.cpp')
-rw-r--r--lld/lib/Driver/WinLinkDriver.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/lld/lib/Driver/WinLinkDriver.cpp b/lld/lib/Driver/WinLinkDriver.cpp
index 685f8c00c1e..74d6a5bf835 100644
--- a/lld/lib/Driver/WinLinkDriver.cpp
+++ b/lld/lib/Driver/WinLinkDriver.cpp
@@ -13,12 +13,10 @@
///
//===----------------------------------------------------------------------===//
-#include "lld/Core/ArchiveLibraryFile.h"
#include "lld/Driver/Driver.h"
#include "lld/Driver/WinLinkInputGraph.h"
#include "lld/Driver/WinLinkModuleDef.h"
#include "lld/ReaderWriter/PECOFFLinkingContext.h"
-#include "../ReaderWriter/PECOFF/LinkerGeneratedSymbolFile.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/Optional.h"
@@ -36,7 +34,6 @@
#include <algorithm>
#include <cctype>
-#include <functional>
#include <map>
#include <memory>
#include <sstream>
@@ -1296,19 +1293,6 @@ bool WinLinkDriver::parse(int argc, const char *argv[],
}
}
- if (!isReadingDirectiveSection) {
- std::unique_ptr<SimpleFileNode> node(new SimpleFileNode("<export>"));
- pecoff::ExportedSymbolRenameFile *renameFile =
- new pecoff::ExportedSymbolRenameFile(ctx);
- node->appendInputFile(std::unique_ptr<File>(renameFile));
- ctx.getLibraryGroup()->addFile(std::move(node));
- std::function<void(File *)> observer = [=](File *file) {
- if (auto *archive = dyn_cast<ArchiveLibraryFile>(file))
- renameFile->addResolvableSymbols(archive);
- };
- ctx.getInputGraph().registerObserver(observer);
- }
-
// Validate the combination of options used.
return ctx.validate(diag);
}
OpenPOWER on IntegriCloud