[lld] r234069 - Remove unused functions.
Rui Ueyama
ruiu at google.com
Fri Apr 3 17:12:27 PDT 2015
Author: ruiu
Date: Fri Apr 3 19:12:27 2015
New Revision: 234069
URL: http://llvm.org/viewvc/llvm-project?rev=234069&view=rev
Log:
Remove unused functions.
Modified:
lld/trunk/lib/ReaderWriter/ELF/ARM/ARMELFFile.h
lld/trunk/lib/ReaderWriter/ELF/ELFFile.h
lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonELFFile.h
lld/trunk/lib/ReaderWriter/ELF/Mips/MipsELFFile.h
Modified: lld/trunk/lib/ReaderWriter/ELF/ARM/ARMELFFile.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/ARM/ARMELFFile.h?rev=234069&r1=234068&r2=234069&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/ARM/ARMELFFile.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/ARM/ARMELFFile.h Fri Apr 3 19:12:27 2015
@@ -60,12 +60,6 @@ public:
ARMELFFile(std::unique_ptr<MemoryBuffer> mb, ARMLinkingContext &ctx)
: ELFFile<ELFT>(std::move(mb), ctx) {}
- static ErrorOr<std::unique_ptr<ARMELFFile>>
- create(std::unique_ptr<MemoryBuffer> mb, ARMLinkingContext &ctx) {
- return std::unique_ptr<ARMELFFile<ELFT>>(
- new ARMELFFile<ELFT>(std::move(mb), ctx));
- }
-
protected:
/// Returns initial addend; for ARM it is 0, because it is read
/// during the relocations applying
Modified: lld/trunk/lib/ReaderWriter/ELF/ELFFile.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/ELFFile.h?rev=234069&r1=234068&r2=234069&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/ELFFile.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/ELFFile.h Fri Apr 3 19:12:27 2015
@@ -102,9 +102,6 @@ public:
_ordinal(0), _doStringsMerge(ctx.mergeCommonStrings()),
_useWrap(ctx.wrapCalls().size()), _ctx(ctx) {}
- static ErrorOr<std::unique_ptr<ELFFile>>
- create(std::unique_ptr<MemoryBuffer> mb, ELFLinkingContext &ctx);
-
virtual Reference::KindArch kindArch();
/// \brief Create symbols from LinkingContext.
@@ -479,13 +476,6 @@ public:
};
template <class ELFT>
-ErrorOr<std::unique_ptr<ELFFile<ELFT>>>
-ELFFile<ELFT>::create(std::unique_ptr<MemoryBuffer> mb,
- ELFLinkingContext &ctx) {
- return llvm::make_unique<ELFFile<ELFT>>(std::move(mb), ctx);
-}
-
-template <class ELFT>
std::error_code ELFFile<ELFT>::doParse() {
std::error_code ec;
_objFile.reset(new llvm::object::ELFFile<ELFT>(_mb->getBuffer(), ec));
Modified: lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonELFFile.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonELFFile.h?rev=234069&r1=234068&r2=234069&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonELFFile.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Hexagon/HexagonELFFile.h Fri Apr 3 19:12:27 2015
@@ -112,12 +112,6 @@ public:
HexagonELFFile(std::unique_ptr<MemoryBuffer> mb, HexagonLinkingContext &ctx)
: ELFFile<ELFT>(std::move(mb), ctx) {}
- static ErrorOr<std::unique_ptr<HexagonELFFile>>
- create(std::unique_ptr<MemoryBuffer> mb, HexagonLinkingContext &ctx) {
- return std::unique_ptr<HexagonELFFile<ELFT>>(
- new HexagonELFFile<ELFT>(std::move(mb), ctx));
- }
-
bool isCommonSymbol(const Elf_Sym *symbol) const override {
switch (symbol->st_shndx) {
// Common symbols
Modified: lld/trunk/lib/ReaderWriter/ELF/Mips/MipsELFFile.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/Mips/MipsELFFile.h?rev=234069&r1=234068&r2=234069&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/Mips/MipsELFFile.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/Mips/MipsELFFile.h Fri Apr 3 19:12:27 2015
@@ -91,11 +91,6 @@ public:
MipsELFFile(std::unique_ptr<MemoryBuffer> mb, MipsLinkingContext &ctx)
: ELFFile<ELFT>(std::move(mb), ctx) {}
- static ErrorOr<std::unique_ptr<MipsELFFile>>
- create(std::unique_ptr<MemoryBuffer> mb, MipsLinkingContext &ctx) {
- return llvm::make_unique<MipsELFFile<ELFT>>(std::move(mb), ctx);
- }
-
bool isPIC() const {
return this->_objFile->getHeader()->e_flags & llvm::ELF::EF_MIPS_PIC;
}
More information about the llvm-commits
mailing list