#include "MachOReader.h"
#include "MachOObject.h"
#include "llvm/BinaryFormat/MachO.h"
#include "llvm/Object/MachO.h"
#include "llvm/Support/Errc.h"
#include "llvm/Support/SystemZ/zOSSupport.h"
#include <memory>
usingnamespacellvm;
usingnamespacellvm::objcopy;
usingnamespacellvm::objcopy::macho;
void MachOReader::readHeader(Object &O) const { … }
template <typename SectionType>
static Section constructSectionCommon(const SectionType &Sec, uint32_t Index) { … }
Section constructSection(const MachO::section &Sec, uint32_t Index) { … }
Section constructSection(const MachO::section_64 &Sec, uint32_t Index) { … }
template <typename SectionType, typename SegmentType>
Expected<std::vector<std::unique_ptr<Section>>> static extractSections(
const object::MachOObjectFile::LoadCommandInfo &LoadCmd,
const object::MachOObjectFile &MachOObj, uint32_t &NextSectionIndex) { … }
Error MachOReader::readLoadCommands(Object &O) const { … }
template <typename nlist_t>
SymbolEntry constructSymbolEntry(StringRef StrTable, const nlist_t &nlist) { … }
void MachOReader::readSymbolTable(Object &O) const { … }
void MachOReader::setSymbolInRelocationInfo(Object &O) const { … }
void MachOReader::readRebaseInfo(Object &O) const { … }
void MachOReader::readBindInfo(Object &O) const { … }
void MachOReader::readWeakBindInfo(Object &O) const { … }
void MachOReader::readLazyBindInfo(Object &O) const { … }
void MachOReader::readExportInfo(Object &O) const { … }
void MachOReader::readLinkData(Object &O, std::optional<size_t> LCIndex,
LinkData &LD) const { … }
void MachOReader::readDataInCodeData(Object &O) const { … }
void MachOReader::readLinkerOptimizationHint(Object &O) const { … }
void MachOReader::readFunctionStartsData(Object &O) const { … }
void MachOReader::readDylibCodeSignDRs(Object &O) const { … }
void MachOReader::readExportsTrie(Object &O) const { … }
void MachOReader::readChainedFixups(Object &O) const { … }
void MachOReader::readIndirectSymbolTable(Object &O) const { … }
void MachOReader::readSwiftVersion(Object &O) const { … }
Expected<std::unique_ptr<Object>> MachOReader::create() const { … }