LLVM 20.0.0git
Functions
MachOObject.cpp File Reference
#include "MachOObject.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/Support/SystemZ/zOSSupport.h"
#include <unordered_set>

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 >
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 200 of file MachOObject.cpp.

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

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