LLVM  17.0.0git
Functions
MachOObject.cpp File Reference
#include "MachOObject.h"
#include "llvm/ADT/SmallPtrSet.h"
#include <unordered_set>
Include dependency graph for MachOObject.cpp:

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. More...
 

Function Documentation

◆ constructSegment()

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

◆ extractSegmentName()

static StringRef extractSegmentName ( const char *  SegName)
static

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