LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
MachOUniversal.cpp File Reference
#include "llvm/Object/MachOUniversal.h"
#include "llvm/Object/MachO.h"
#include "llvm/Object/ObjectFile.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/Host.h"
#include "llvm/Support/MemoryBuffer.h"
Include dependency graph for MachOUniversal.cpp:

Go to the source code of this file.

Functions

template<typename T >
static void SwapValue (T &Value)
 
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)
 

Function Documentation

static bool getCTMForArch ( Triple::ArchType  Arch,
MachO::CPUType CTM 
)
static
template<typename T >
static T getUniversalBinaryStruct ( const char *  Ptr)
static
template<typename T >
static void SwapStruct ( T Value)
static
template<>
void SwapStruct ( MachO::fat_header H)
template<>
void SwapStruct ( MachO::fat_arch H)
template<typename T >
static void SwapValue ( T Value)
static

Definition at line 26 of file MachOUniversal.cpp.

References llvm::sys::SwapByteOrder().