mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-13 20:25:12 +00:00
Make getRelocationSection MachO only.
There are 3 types of relocations on MachO * Scattered * Section based * Symbol based On ELF and COFF relocations are symbol based. We were in the strange situation that we abstracted over two of them. This makes section based relocations MachO only. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240149 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -53,7 +53,6 @@ public:
|
||||
std::error_code getAddress(uint64_t &Result) const;
|
||||
std::error_code getOffset(uint64_t &Result) const;
|
||||
symbol_iterator getSymbol() const;
|
||||
section_iterator getSection() const;
|
||||
std::error_code getType(uint64_t &Result) const;
|
||||
|
||||
/// @brief Indicates whether this relocation should hidden when listing
|
||||
@ -241,7 +240,6 @@ protected:
|
||||
virtual std::error_code getRelocationOffset(DataRefImpl Rel,
|
||||
uint64_t &Res) const = 0;
|
||||
virtual symbol_iterator getRelocationSymbol(DataRefImpl Rel) const = 0;
|
||||
virtual section_iterator getRelocationSection(DataRefImpl Rel) const = 0;
|
||||
virtual std::error_code getRelocationType(DataRefImpl Rel,
|
||||
uint64_t &Res) const = 0;
|
||||
virtual std::error_code
|
||||
@ -459,10 +457,6 @@ inline symbol_iterator RelocationRef::getSymbol() const {
|
||||
return OwningObject->getRelocationSymbol(RelocationPimpl);
|
||||
}
|
||||
|
||||
inline section_iterator RelocationRef::getSection() const {
|
||||
return OwningObject->getRelocationSection(RelocationPimpl);
|
||||
}
|
||||
|
||||
inline std::error_code RelocationRef::getType(uint64_t &Result) const {
|
||||
return OwningObject->getRelocationType(RelocationPimpl, Result);
|
||||
}
|
||||
|
Reference in New Issue
Block a user