LLVM 18.0.0git
|
Go to the source code of this file.
Functions | |
template<typename SegmentType > | |
static void | constructSegment (SegmentType &Seg, llvm::MachO::LoadCommandType CmdType, StringRef SegName, uint64_t SegVMAddr, uint64_t SegVMSize) |
static StringRef | extractSegmentName (const char *SegName) |
Extracts a segment name from a string which is possibly non-null-terminated. | |
|
static |
Definition at line 170 of file MachOObject.cpp.
References assert(), llvm::StringRef::data(), llvm::StringRef::size(), llvm::MachO::VM_PROT_EXECUTE, llvm::MachO::VM_PROT_READ, and llvm::MachO::VM_PROT_WRITE.
Referenced by llvm::objcopy::macho::Object::addSegment().
Extracts a segment name from a string which is possibly non-null-terminated.
Definition at line 199 of file MachOObject.cpp.
References llvm::MachO::segment_command::segname.
Referenced by llvm::objcopy::macho::LoadCommand::getSegmentName().