Remove unused functions.

llvm-svn: 234069
This commit is contained in:
Rui Ueyama 2015-04-04 00:12:27 +00:00
parent 133933bb42
commit 4d200e3859
4 changed files with 0 additions and 27 deletions

View File

@ -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

View File

@ -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.
@ -478,13 +475,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;

View File

@ -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

View File

@ -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;
}