Changeset View
Changeset View
Standalone View
Standalone View
lld/trunk/lib/ReaderWriter/MachO/ArchHandler.h
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | public: | ||||
/// Used by normalizedFromAtoms() to know where to generated rebasing and | /// Used by normalizedFromAtoms() to know where to generated rebasing and | ||||
/// binding info in final executables. | /// binding info in final executables. | ||||
virtual bool isPointer(const Reference &) = 0; | virtual bool isPointer(const Reference &) = 0; | ||||
/// Used by normalizedFromAtoms() to know where to generated lazy binding | /// Used by normalizedFromAtoms() to know where to generated lazy binding | ||||
/// info in final executables. | /// info in final executables. | ||||
virtual bool isLazyPointer(const Reference &); | virtual bool isLazyPointer(const Reference &); | ||||
/// Reference from an __stub_helper entry to the required offset of the | |||||
/// lazy bind commands. | |||||
virtual Reference::KindValue lazyImmediateLocationKind() = 0; | |||||
/// Returns true if the specified relocation is paired to the next relocation. | /// Returns true if the specified relocation is paired to the next relocation. | ||||
virtual bool isPairedReloc(const normalized::Relocation &) = 0; | virtual bool isPairedReloc(const normalized::Relocation &) = 0; | ||||
/// Prototype for a helper function. Given a sectionIndex and address, | /// Prototype for a helper function. Given a sectionIndex and address, | ||||
/// finds the atom and offset with that atom of that address. | /// finds the atom and offset with that atom of that address. | ||||
typedef std::function<llvm::Error (uint32_t sectionIndex, uint64_t addr, | typedef std::function<llvm::Error (uint32_t sectionIndex, uint64_t addr, | ||||
const lld::Atom **, Reference::Addend *)> | const lld::Atom **, Reference::Addend *)> | ||||
FindAtomBySectionAndAddress; | FindAtomBySectionAndAddress; | ||||
▲ Show 20 Lines • Show All 197 Lines • Show Last 20 Lines |