LLVM API Documentation
#include "llvm/Object/MachOUniversal.h"
#include "llvm/Object/MachO.h"
#include "llvm/Object/ObjectFile.h"
#include "llvm/Object/Archive.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/Host.h"
#include "llvm/Support/MemoryBuffer.h"
Go to the source code of this file.
Functions | |
template<typename T > | |
static void | SwapStruct (T &Value) |
template<> | |
void | SwapStruct (MachO::fat_header &H) |
template<> | |
void | SwapStruct (MachO::fat_arch &H) |
template<typename T > | |
static T | getUniversalBinaryStruct (const char *Ptr) |
static bool | getCTMForArch (Triple::ArchType Arch, MachO::CPUType &CTM) |
static bool getCTMForArch | ( | Triple::ArchType | Arch, |
MachO::CPUType & | CTM | ||
) | [static] |
Definition at line 130 of file MachOUniversal.cpp.
References llvm::Triple::arm, llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_TYPE_I386, llvm::MachO::CPU_TYPE_POWERPC, llvm::MachO::CPU_TYPE_POWERPC64, llvm::MachO::CPU_TYPE_SPARC, llvm::MachO::CPU_TYPE_X86_64, llvm::Triple::ppc, llvm::Triple::ppc64, llvm::Triple::sparc, llvm::Triple::x86, and llvm::Triple::x86_64.
Referenced by llvm::object::MachOUniversalBinary::getObjectForArch().
static T getUniversalBinaryStruct | ( | const char * | Ptr | ) | [static] |
Definition at line 44 of file MachOUniversal.cpp.
References llvm::sys::IsLittleEndianHost, llvm::LibFunc::memcpy, and SwapStruct().
static void SwapStruct | ( | T & | Value | ) | [static] |
Referenced by getUniversalBinaryStruct().
void SwapStruct | ( | MachO::fat_header & | H | ) |
Definition at line 29 of file MachOUniversal.cpp.
References llvm::MachO::fat_header::magic, llvm::MachO::fat_header::nfat_arch, and llvm::sys::swapByteOrder().
void SwapStruct | ( | MachO::fat_arch & | H | ) |
Definition at line 35 of file MachOUniversal.cpp.
References llvm::MachO::fat_arch::align, llvm::MachO::fat_arch::cpusubtype, llvm::MachO::fat_arch::cputype, llvm::MachO::fat_arch::offset, llvm::MachO::fat_arch::size, and llvm::sys::swapByteOrder().