LLVM 22.0.0git
MachOEmitter.cpp File Reference

The Mach component of yaml2obj. More...

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
namespace  llvm::yaml

Macros

#define HANDLE_LOAD_COMMAND(LCName, LCValue, LCStruct)

Functions

LLVM_ABI bool llvm::yaml::yaml2macho (YamlObjectFile &Doc, raw_ostream &Out, ErrorHandler EH)

Detailed Description

The Mach component of yaml2obj.

Definition in file MachOEmitter.cpp.

Macro Definition Documentation

◆ HANDLE_LOAD_COMMAND

#define HANDLE_LOAD_COMMAND ( LCName,
LCValue,
LCStruct )
Value:
case MachO::LCName: \
if (Obj.IsLittleEndian != sys::IsLittleEndianHost) \
MachO::swapStruct(Data.LCStruct##_data); \
OS.write(reinterpret_cast<const char *>(&(Data.LCStruct##_data)), \
sizeof(MachO::LCStruct)); \
BytesWritten = sizeof(MachO::LCStruct); \
BytesWritten += \
writeLoadCommandData<MachO::LCStruct>(LC, OS, Obj.IsLittleEndian); \
break;
constexpr bool IsLittleEndianHost
FunctionAddr VTableAddr uintptr_t uintptr_t Data
Definition InstrProf.h:189