mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-11 21:38:19 +00:00
Delete dead code. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240160 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -45,9 +45,6 @@ public:
|
|||||||
virtual std::pair<symbol_iterator, symbol_iterator>
|
virtual std::pair<symbol_iterator, symbol_iterator>
|
||||||
getELFDynamicSymbolIterators() const = 0;
|
getELFDynamicSymbolIterators() const = 0;
|
||||||
|
|
||||||
virtual std::error_code getSymbolVersion(SymbolRef Symb, StringRef &Version,
|
|
||||||
bool &IsDefault) const = 0;
|
|
||||||
|
|
||||||
virtual uint64_t getSectionFlags(SectionRef Sec) const = 0;
|
virtual uint64_t getSectionFlags(SectionRef Sec) const = 0;
|
||||||
virtual uint32_t getSectionType(SectionRef Sec) const = 0;
|
virtual uint32_t getSectionType(SectionRef Sec) const = 0;
|
||||||
|
|
||||||
@ -209,8 +206,6 @@ public:
|
|||||||
|
|
||||||
std::error_code getRelocationAddend(DataRefImpl Rel,
|
std::error_code getRelocationAddend(DataRefImpl Rel,
|
||||||
int64_t &Res) const override;
|
int64_t &Res) const override;
|
||||||
std::error_code getSymbolVersion(SymbolRef Symb, StringRef &Version,
|
|
||||||
bool &IsDefault) const override;
|
|
||||||
|
|
||||||
uint64_t getSectionFlags(SectionRef Sec) const override;
|
uint64_t getSectionFlags(SectionRef Sec) const override;
|
||||||
uint32_t getSectionType(SectionRef Sec) const override;
|
uint32_t getSectionType(SectionRef Sec) const override;
|
||||||
@ -259,20 +254,6 @@ std::error_code ELFObjectFile<ELFT>::getSymbolName(DataRefImpl Symb,
|
|||||||
return std::error_code();
|
return std::error_code();
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class ELFT>
|
|
||||||
std::error_code ELFObjectFile<ELFT>::getSymbolVersion(SymbolRef SymRef,
|
|
||||||
StringRef &Version,
|
|
||||||
bool &IsDefault) const {
|
|
||||||
DataRefImpl Symb = SymRef.getRawDataRefImpl();
|
|
||||||
const Elf_Sym *symb = getSymbol(Symb);
|
|
||||||
ErrorOr<StringRef> Ver =
|
|
||||||
EF.getSymbolVersion(EF.getSection(Symb.d.b), symb, IsDefault);
|
|
||||||
if (!Ver)
|
|
||||||
return Ver.getError();
|
|
||||||
Version = *Ver;
|
|
||||||
return std::error_code();
|
|
||||||
}
|
|
||||||
|
|
||||||
template <class ELFT>
|
template <class ELFT>
|
||||||
uint64_t ELFObjectFile<ELFT>::getSectionFlags(SectionRef Sec) const {
|
uint64_t ELFObjectFile<ELFT>::getSectionFlags(SectionRef Sec) const {
|
||||||
DataRefImpl DRI = Sec.getRawDataRefImpl();
|
DataRefImpl DRI = Sec.getRawDataRefImpl();
|
||||||
@ -876,13 +857,6 @@ getELFDynamicSymbolIterators(const SymbolicFile *Obj) {
|
|||||||
return cast<ELFObjectFileBase>(Obj)->getELFDynamicSymbolIterators();
|
return cast<ELFObjectFileBase>(Obj)->getELFDynamicSymbolIterators();
|
||||||
}
|
}
|
||||||
|
|
||||||
inline std::error_code GetELFSymbolVersion(const ObjectFile *Obj,
|
|
||||||
const SymbolRef &Sym,
|
|
||||||
StringRef &Version,
|
|
||||||
bool &IsDefault) {
|
|
||||||
return cast<ELFObjectFileBase>(Obj)
|
|
||||||
->getSymbolVersion(Sym, Version, IsDefault);
|
|
||||||
}
|
|
||||||
} // namespace object
|
} // namespace object
|
||||||
} // namespace llvm
|
} // namespace llvm
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user