[ELF][Cleanup] Remove unused functions

Remove unused functions in the Target relocation handler.

llvm-svn: 217354
This commit is contained in:
Shankar Easwaran 2014-09-08 02:43:01 +00:00
parent c89ae72e43
commit 0971629764
4 changed files with 0 additions and 31 deletions

View File

@ -363,20 +363,6 @@ static void relocR_AARCH64_TLSLE_ADD_TPREL_LO12_NC(uint8_t *location,
(int32_t) * reinterpret_cast<llvm::support::little32_t *>(location);
}
int64_t
AArch64TargetRelocationHandler::relocAddend(const Reference &ref) const {
if (ref.kindNamespace() != Reference::KindNamespace::ELF)
return false;
assert(ref.kindArch() == Reference::KindArch::AArch64);
switch (ref.kindValue()) {
case R_AARCH64_PREL32:
return 4;
default:
return 0;
}
return 0;
}
std::error_code AArch64TargetRelocationHandler::applyRelocation(
ELFWriter &writer, llvm::FileOutputBuffer &buf, const lld::AtomLayout &atom,
const Reference &ref) const {

View File

@ -27,8 +27,6 @@ public:
const lld::AtomLayout &,
const Reference &) const override;
virtual int64_t relocAddend(const Reference &) const;
static const Registry::KindStrings kindStrings[];
};

View File

@ -47,19 +47,6 @@ static void reloc32S(uint8_t *location, uint64_t P, uint64_t S, int64_t A) {
// TODO: Make sure that the result sign extends to the 64bit value.
}
int64_t X86_64TargetRelocationHandler::relocAddend(const Reference &ref) const {
if (ref.kindNamespace() != Reference::KindNamespace::ELF)
return false;
assert(ref.kindArch() == Reference::KindArch::x86_64);
switch (ref.kindValue()) {
case R_X86_64_PC32:
return 4;
default:
return 0;
}
return 0;
}
std::error_code X86_64TargetRelocationHandler::applyRelocation(
ELFWriter &writer, llvm::FileOutputBuffer &buf, const lld::AtomLayout &atom,
const Reference &ref) const {

View File

@ -28,8 +28,6 @@ public:
const lld::AtomLayout &,
const Reference &) const override;
virtual int64_t relocAddend(const Reference &) const;
static const Registry::KindStrings kindStrings[];
private: