From 39b9524f82ea2c7af051a293ed6a0f4c308c705f Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Fri, 30 Jan 2015 01:18:43 +0000 Subject: [PATCH] Remove remaining code for PPC ELF target. llvm-svn: 227534 --- lld/lib/ReaderWriter/ELF/Atoms.h | 5 ----- lld/lib/ReaderWriter/ELF/ELFFile.h | 2 -- lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp | 2 -- lld/lib/ReaderWriter/ELF/Layout.h | 2 +- 4 files changed, 1 insertion(+), 10 deletions(-) diff --git a/lld/lib/ReaderWriter/ELF/Atoms.h b/lld/lib/ReaderWriter/ELF/Atoms.h index abab6bf..f5a21f3 100644 --- a/lld/lib/ReaderWriter/ELF/Atoms.h +++ b/lld/lib/ReaderWriter/ELF/Atoms.h @@ -678,11 +678,6 @@ public: this->addReferenceELF(Reference::KindArch::x86_64, relocType, off, t, a); } - void addReferenceELF_PowerPC(Reference::KindValue relocType, uint64_t off, - const Atom *t, Reference::Addend a) { - this->addReferenceELF(Reference::KindArch::PowerPC, relocType, off, t, a); - } - void addReferenceELF_Mips(Reference::KindValue relocType, uint64_t off, const Atom *t, Reference::Addend a) { this->addReferenceELF(Reference::KindArch::Mips, relocType, off, t, a); diff --git a/lld/lib/ReaderWriter/ELF/ELFFile.h b/lld/lib/ReaderWriter/ELF/ELFFile.h index bddb56f..2e00e15 100644 --- a/lld/lib/ReaderWriter/ELF/ELFFile.h +++ b/lld/lib/ReaderWriter/ELF/ELFFile.h @@ -453,8 +453,6 @@ template Reference::KindArch ELFFile::kindArch() { return Reference::KindArch::x86; case llvm::ELF::EM_ARM: return Reference::KindArch::ARM; - case llvm::ELF::EM_PPC: - return Reference::KindArch::PowerPC; case llvm::ELF::EM_HEXAGON: return Reference::KindArch::Hexagon; case llvm::ELF::EM_MIPS: diff --git a/lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp b/lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp index 93ccf7a..86da1c4 100644 --- a/lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp +++ b/lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp @@ -81,8 +81,6 @@ uint16_t ELFLinkingContext::getOutputMachine() const { case llvm::Triple::mipsel: case llvm::Triple::mips64el: return llvm::ELF::EM_MIPS; - case llvm::Triple::ppc: - return llvm::ELF::EM_PPC; case llvm::Triple::aarch64: return llvm::ELF::EM_AARCH64; case llvm::Triple::arm: diff --git a/lld/lib/ReaderWriter/ELF/Layout.h b/lld/lib/ReaderWriter/ELF/Layout.h index e9c8f40..bbb43ef 100644 --- a/lld/lib/ReaderWriter/ELF/Layout.h +++ b/lld/lib/ReaderWriter/ELF/Layout.h @@ -24,7 +24,7 @@ namespace elf { /// \brief The ELFLayout is an abstract class for managing the final layout for /// the kind of binaries(Shared Libraries / Relocatables / Executables 0 -/// Each architecture (Hexagon, PowerPC, MIPS) would have a concrete +/// Each architecture (Hexagon, MIPS) would have a concrete /// subclass derived from Layout for generating each binary thats // needed by the lld linker class Layout { -- 2.7.4