LLVM API Documentation

Defines | Functions
COFFObjectFile.cpp File Reference
#include "llvm/Object/COFF.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/ADT/Triple.h"
#include "llvm/Support/COFF.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include <cctype>
#include <limits>
Include dependency graph for COFFObjectFile.cpp:

Go to the source code of this file.

Defines

#define LLVM_COFF_SWITCH_RELOC_TYPE_NAME(reloc_type)

Functions

static bool checkSize (MemoryBufferRef M, std::error_code &EC, uint64_t Size)
template<typename T >
static std::error_code getObject (const T *&Obj, MemoryBufferRef M, const uint8_t *Ptr, const size_t Size=sizeof(T))
static bool decodeBase64StringEntry (StringRef Str, uint32_t &Result)
static uint32_t getNumberOfRelocations (const coff_section *Sec, const uint8_t *base)

Define Documentation

#define LLVM_COFF_SWITCH_RELOC_TYPE_NAME (   reloc_type)
Value:
case COFF::reloc_type:                                                       \
    Res = #reloc_type;                                                         \
    break;

Definition at line 916 of file COFFObjectFile.cpp.

Referenced by llvm::object::COFFObjectFile::getRelocationTypeName().


Function Documentation

static bool checkSize ( MemoryBufferRef  M,
std::error_code &  EC,
uint64_t  Size 
) [static]
static bool decodeBase64StringEntry ( StringRef  Str,
uint32_t &  Result 
) [static]
static uint32_t getNumberOfRelocations ( const coff_section Sec,
const uint8_t *  base 
) [static]
template<typename T >
static std::error_code getObject ( const T *&  Obj,
MemoryBufferRef  M,
const uint8_t *  Ptr,
const size_t  Size = sizeof(T) 
) [static]