LLVM API Documentation

Functions
MachOObjectFile.cpp File Reference
#include "llvm/Object/MachO.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/ADT/Triple.h"
#include "llvm/Support/DataExtractor.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/Host.h"
#include "llvm/Support/LEB128.h"
#include "llvm/Support/MachO.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/raw_ostream.h"
#include <cctype>
#include <cstring>
#include <limits>
Include dependency graph for MachOObjectFile.cpp:

Go to the source code of this file.

Functions

template<typename T >
static T getStruct (const MachOObjectFile *O, const char *P)
static uint32_t getSegmentLoadCommandNumSections (const MachOObjectFile *O, const MachOObjectFile::LoadCommandInfo &L)
static bool isPageZeroSegment (const MachOObjectFile *O, const MachOObjectFile::LoadCommandInfo &L)
static const char * getSectionPtr (const MachOObjectFile *O, MachOObjectFile::LoadCommandInfo L, unsigned Sec)
static const char * getPtr (const MachOObjectFile *O, size_t Offset)
static MachO::nlist_base getSymbolTableEntryBase (const MachOObjectFile *O, DataRefImpl DRI)
static StringRef parseSegmentOrSectionName (const char *P)
template<class T >
static void advance (T &it, size_t Val)
static unsigned getCPUType (const MachOObjectFile *O)
static void printRelocationTargetName (const MachOObjectFile *O, const MachO::any_relocation_info &RE, raw_string_ostream &fmt)
static uint32_t getPlainRelocationAddress (const MachO::any_relocation_info &RE)
static unsigned getScatteredRelocationAddress (const MachO::any_relocation_info &RE)
static bool getPlainRelocationPCRel (const MachOObjectFile *O, const MachO::any_relocation_info &RE)
static bool getScatteredRelocationPCRel (const MachOObjectFile *O, const MachO::any_relocation_info &RE)
static unsigned getPlainRelocationLength (const MachOObjectFile *O, const MachO::any_relocation_info &RE)
static unsigned getScatteredRelocationLength (const MachO::any_relocation_info &RE)
static unsigned getPlainRelocationType (const MachOObjectFile *O, const MachO::any_relocation_info &RE)
static unsigned getScatteredRelocationType (const MachO::any_relocation_info &RE)
static uint32_t getSectionFlags (const MachOObjectFile *O, DataRefImpl Sec)

Function Documentation

template<class T >
static void advance ( T it,
size_t  Val 
) [static]
static unsigned getCPUType ( const MachOObjectFile O) [static]
static uint32_t getPlainRelocationAddress ( const MachO::any_relocation_info RE) [static]
static const char* getPtr ( const MachOObjectFile O,
size_t  Offset 
) [static]
static uint32_t getSectionFlags ( const MachOObjectFile O,
DataRefImpl  Sec 
) [static]
static const char* getSectionPtr ( const MachOObjectFile O,
MachOObjectFile::LoadCommandInfo  L,
unsigned  Sec 
) [static]
template<typename T >
static T getStruct ( const MachOObjectFile O,
const char *  P 
) [static]
static StringRef parseSegmentOrSectionName ( const char *  P) [static]