class MachOWriter

Declaration

class MachOWriter { /* full declaration omitted */ };

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:24

Member Variables

private llvm::objcopy::macho::Object& O
private bool Is64Bit
private bool IsLittleEndian
private uint64_t PageSize
private std::unique_ptr<WritableMemoryBuffer> Buf
private llvm::raw_ostream& Out
private llvm::objcopy::macho::MachOLayoutBuilder LayoutBuilder

Method Overview

Methods

MachOWriter(llvm::objcopy::macho::Object& O,
            bool Is64Bit,
            bool IsLittleEndian,
            llvm::StringRef OutputFileName,
            uint64_t PageSize,
            llvm::raw_ostream& Out)

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:61

Parameters

llvm::objcopy::macho::Object& O
bool Is64Bit
bool IsLittleEndian
llvm::StringRef OutputFileName
uint64_t PageSize
llvm::raw_ostream& Out

llvm::Error finalize()

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:68

size_t headerSize() const

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:33

size_t loadCommandsSize() const

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:34

size_t strTableSize() const

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:36

size_t symTableSize() const

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:35

size_t totalSize() const

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:67

llvm::Error write()

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:69

void writeBindInfo()

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:46

void writeChainedFixupsData()

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:56

void writeCodeSignatureData()

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:52

void writeDataInCodeData()

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:53

void writeExportInfo()

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:49

void writeExportsTrieData()

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:57

void writeFunctionStartsData()

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:55

void writeHeader()

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:38

void writeIndirectSymbolTable()

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:50

void writeLazyBindInfo()

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:48

void writeLinkData(
    Optional<size_t> LCIndex,
    const llvm::objcopy::macho::LinkData& LD)

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:51

Parameters

Optional<size_t> LCIndex
const llvm::objcopy::macho::LinkData& LD

void writeLinkerOptimizationHint()

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:54

void writeLoadCommands()

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:39

void writeRebaseInfo()

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:45

template <typename StructType>
void writeSectionInLoadCommand(
    const llvm::objcopy::macho::Section& Sec,
    uint8_t*& Out)

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:41

Templates

StructType

Parameters

const llvm::objcopy::macho::Section& Sec
uint8_t*& Out

void writeSections()

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:42

void writeStringTable()

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:44

void writeSymbolTable()

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:43

void writeTail()

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:58

void writeWeakBindInfo()

Declared at: llvm/lib/ObjCopy/MachO/MachOWriter.h:47