LLVM 20.0.0git
Public Member Functions | List of all members
llvm::objcopy::macho::MachOWriter Class Reference

#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 ()
 

Detailed Description

Definition at line 24 of file MachOWriter.h.

Constructor & Destructor Documentation

◆ MachOWriter()

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

Definition at line 62 of file MachOWriter.h.

Member Function Documentation

◆ finalize()

Error MachOWriter::finalize ( )

◆ totalSize()

size_t MachOWriter::totalSize ( ) const

Definition at line 39 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().

◆ write()

Error MachOWriter::write ( )

The documentation for this class was generated from the following files: