LLVM 22.0.0git
MachOObject.cpp File Reference

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.

Function Documentation

◆ constructSegment()

template<typename SegmentType>
void constructSegment ( SegmentType & Seg,
llvm::MachO::LoadCommandType CmdType,
StringRef SegName,
uint64_t SegVMAddr,
uint64_t SegVMSize )
static

◆ extractSegmentName()

StringRef extractSegmentName ( const char * SegName)
static

Extracts a segment name from a string which is possibly non-null-terminated.

Definition at line 212 of file MachOObject.cpp.

References llvm::MachO::segment_command::segname.

Referenced by llvm::objcopy::macho::LoadCommand::getSegmentName().