|
LLVM 22.0.0git
|
#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. | |
|
static |
Definition at line 184 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 213 of file MachOObject.cpp.
References llvm::MachO::segment_command::segname.
Referenced by llvm::objcopy::macho::LoadCommand::getSegmentName().