summaryrefslogtreecommitdiffstats
path: root/lld/lib/Core/LinkingContext.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-02-28 21:22:40 +0000
committerRui Ueyama <ruiu@google.com>2016-02-28 21:22:40 +0000
commit701c3250e57a428ca3b0d6fca7760f5810230e89 (patch)
tree407ae7518c0e572cc17cd592158cf96ae2b4a501 /lld/lib/Core/LinkingContext.cpp
parent3b9388f45667fd32d379f0c49027f8ce680f6d68 (diff)
downloadbcm5719-llvm-701c3250e57a428ca3b0d6fca7760f5810230e89.tar.gz
bcm5719-llvm-701c3250e57a428ca3b0d6fca7760f5810230e89.zip
Remove remaining code for COFF.
llvm-svn: 262193
Diffstat (limited to 'lld/lib/Core/LinkingContext.cpp')
-rw-r--r--lld/lib/Core/LinkingContext.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/lld/lib/Core/LinkingContext.cpp b/lld/lib/Core/LinkingContext.cpp
index 567f15dfe19..54d2c51f39a 100644
--- a/lld/lib/Core/LinkingContext.cpp
+++ b/lld/lib/Core/LinkingContext.cpp
@@ -7,7 +7,6 @@
//
//===----------------------------------------------------------------------===//
-#include "lld/Core/Alias.h"
#include "lld/Core/LinkingContext.h"
#include "lld/Core/Resolver.h"
#include "lld/Core/Simple.h"
@@ -73,33 +72,12 @@ LinkingContext::createUndefinedSymbolFile(StringRef filename) const {
return std::move(undefinedSymFile);
}
-std::unique_ptr<File> LinkingContext::createAliasSymbolFile() const {
- if (getAliases().empty())
- return nullptr;
- std::unique_ptr<SimpleFile> file(
- new SimpleFile("<alias>", File::kindUndefinedSymsObject));
- for (const auto &i : getAliases()) {
- StringRef from = i.first;
- StringRef to = i.second;
- SimpleDefinedAtom *fromAtom = new (_allocator) AliasAtom(*file, from);
- UndefinedAtom *toAtom = new (_allocator) SimpleUndefinedAtom(*file, to);
- fromAtom->addReference(Reference::KindNamespace::all,
- Reference::KindArch::all, Reference::kindLayoutAfter,
- 0, toAtom, 0);
- file->addAtom(*fromAtom);
- file->addAtom(*toAtom);
- }
- return std::move(file);
-}
-
void LinkingContext::createInternalFiles(
std::vector<std::unique_ptr<File> > &result) const {
if (std::unique_ptr<File> file = createEntrySymbolFile())
result.push_back(std::move(file));
if (std::unique_ptr<File> file = createUndefinedSymbolFile())
result.push_back(std::move(file));
- if (std::unique_ptr<File> file = createAliasSymbolFile())
- result.push_back(std::move(file));
}
void LinkingContext::addPasses(PassManager &pm) {}
OpenPOWER on IntegriCloud