diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:48:50 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:48:50 +0000 |
commit | 1c98619801a5705c688e683be3ef9d70169a0686 (patch) | |
tree | 8422105cd1a94c368315f2db16b9ac746cf7c000 /lib/ReaderWriter/ELF/Reader.cpp | |
parent | f4f3ce4613680903220815690ad79fc7ba0a2e26 (diff) |
Notes
Diffstat (limited to 'lib/ReaderWriter/ELF/Reader.cpp')
-rw-r--r-- | lib/ReaderWriter/ELF/Reader.cpp | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/lib/ReaderWriter/ELF/Reader.cpp b/lib/ReaderWriter/ELF/Reader.cpp deleted file mode 100644 index 801f1abaed7a..000000000000 --- a/lib/ReaderWriter/ELF/Reader.cpp +++ /dev/null @@ -1,43 +0,0 @@ -//===- lib/ReaderWriter/ELF/Reader.cpp ------------------------------------===// -// -// The LLVM Linker -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -/// -/// \file -/// \brief Defines the ELF Reader and all helper sub classes to consume an ELF -/// file and produces atoms out of it. -/// -//===----------------------------------------------------------------------===// - -#include "ELFReader.h" -#include <map> -#include <vector> - -using llvm::support::endianness; -using namespace llvm::object; - -namespace lld { - -// This dynamic registration of a handler causes support for all ELF -// architectures to be pulled into the linker. If we want to support making a -// linker that only supports one ELF architecture, we'd need to change this -// to have a different registration method for each architecture. -void Registry::addSupportELFObjects(ELFLinkingContext &ctx) { - - // Tell registry about the ELF object file parser. - add(ctx.getTargetHandler().getObjReader()); - - // Tell registry about the relocation name to number mapping for this arch. - ctx.registerRelocationNames(*this); -} - -void Registry::addSupportELFDynamicSharedObjects(ELFLinkingContext &ctx) { - // Tell registry about the ELF dynamic shared library file parser. - add(ctx.getTargetHandler().getDSOReader()); -} - -} // end namespace lld |