LLVM 20.0.0git
|
#include "ObjCopy/MachO/MachOWriter.h"
Public Member Functions | |
MachOWriter (Object &O, bool Is64Bit, bool IsLittleEndian, StringRef OutputFileName, uint64_t PageSize, raw_ostream &Out) | |
size_t | totalSize () const |
Error | finalize () |
Error | write () |
Definition at line 24 of file MachOWriter.h.
|
inline |
Definition at line 62 of file MachOWriter.h.
Error MachOWriter::finalize | ( | ) |
Definition at line 657 of file MachOWriter.cpp.
References llvm::objcopy::macho::MachOLayoutBuilder::layout().
Referenced by llvm::objcopy::macho::executeObjcopyOnBinary().
size_t MachOWriter::totalSize | ( | ) | const |
Definition at line 38 of file MachOWriter.cpp.
References assert(), llvm::MachO::dyld_info_command::bind_off, llvm::MachO::dyld_info_command::bind_size, llvm::objcopy::macho::Object::Binds, llvm::objcopy::macho::Object::ChainedFixupsCommandIndex, llvm::objcopy::macho::Object::CodeSignatureCommandIndex, llvm::objcopy::macho::Object::DataInCodeCommandIndex, llvm::MachO::linkedit_data_command::dataoff, llvm::MachO::linkedit_data_command::datasize, llvm::objcopy::macho::Object::DyLdInfoCommandIndex, llvm::objcopy::macho::Object::DylibCodeSignDRsIndex, llvm::objcopy::macho::Object::DySymTabCommandIndex, llvm::SmallVectorBase< Size_T >::empty(), llvm::MachO::dyld_info_command::export_off, llvm::MachO::dyld_info_command::export_size, llvm::objcopy::macho::Object::Exports, llvm::objcopy::macho::Object::ExportsTrieCommandIndex, llvm::objcopy::macho::Object::FunctionStartsCommandIndex, llvm::MachO::dysymtab_command::indirectsymoff, llvm::objcopy::macho::Object::IndirectSymTable, llvm::MachO::dyld_info_command::lazy_bind_off, llvm::MachO::dyld_info_command::lazy_bind_size, llvm::objcopy::macho::Object::LazyBinds, llvm::objcopy::macho::Object::LinkerOptimizationHintCommandIndex, llvm::objcopy::macho::Object::LoadCommands, llvm::max_element(), llvm::objcopy::macho::RebaseInfo::Opcodes, llvm::objcopy::macho::BindInfo::Opcodes, llvm::objcopy::macho::WeakBindInfo::Opcodes, llvm::objcopy::macho::LazyBindInfo::Opcodes, llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::MachO::dyld_info_command::rebase_off, llvm::MachO::dyld_info_command::rebase_size, llvm::objcopy::macho::Object::Rebases, llvm::objcopy::macho::LoadCommand::Sections, llvm::ArrayRef< T >::size(), llvm::MachO::symtab_command::stroff, llvm::MachO::symtab_command::strsize, llvm::objcopy::macho::IndirectSymbolTable::Symbols, llvm::MachO::symtab_command::symoff, llvm::objcopy::macho::Object::SymTabCommandIndex, llvm::objcopy::macho::ExportInfo::Trie, llvm::MachO::dyld_info_command::weak_bind_off, llvm::MachO::dyld_info_command::weak_bind_size, and llvm::objcopy::macho::Object::WeakBinds.
Referenced by write().
Error MachOWriter::write | ( | ) |
Definition at line 659 of file MachOWriter.cpp.
References llvm::createStringError(), llvm::WritableMemoryBuffer::getNewMemBuffer(), llvm::not_enough_memory, llvm::Error::success(), totalSize(), and llvm::Twine::utohexstr().
Referenced by llvm::objcopy::macho::executeObjcopyOnBinary().