LLVM  3.7.0
Macros | 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/ADT/iterator_range.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.

Macros

#define LLVM_COFF_SWITCH_RELOC_TYPE_NAME(reloc_type)
 

Functions

static bool checkSize (MemoryBufferRef M, std::error_code &EC, uint64_t Size)
 
static std::error_code checkOffset (MemoryBufferRef M, uintptr_t Addr, const uint64_t Size)
 
template<typename T >
static std::error_code getObject (const T *&Obj, MemoryBufferRef M, const void *Ptr, const uint64_t Size=sizeof(T))
 
static bool decodeBase64StringEntry (StringRef Str, uint32_t &Result)
 
static uint32_t getNumberOfRelocations (const coff_section *Sec, MemoryBufferRef M, const uint8_t *base)
 
static const coff_relocationgetFirstReloc (const coff_section *Sec, MemoryBufferRef M, const uint8_t *Base)
 
static imported_symbol_iterator makeImportedSymbolIterator (const COFFObjectFile *Object, uintptr_t Ptr, int Index)
 
static imported_symbol_iterator importedSymbolBegin (uint32_t RVA, const COFFObjectFile *Object)
 
static imported_symbol_iterator importedSymbolEnd (uint32_t RVA, const COFFObjectFile *Object)
 

Macro Definition Documentation

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

Definition at line 1011 of file COFFObjectFile.cpp.

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

Function Documentation

static std::error_code checkOffset ( MemoryBufferRef  M,
uintptr_t  Addr,
const uint64_t  Size 
)
static
static bool checkSize ( MemoryBufferRef  M,
std::error_code &  EC,
uint64_t  Size 
)
static
static bool decodeBase64StringEntry ( StringRef  Str,
uint32_t &  Result 
)
static
static const coff_relocation* getFirstReloc ( const coff_section Sec,
MemoryBufferRef  M,
const uint8_t *  Base 
)
static
static uint32_t getNumberOfRelocations ( const coff_section Sec,
MemoryBufferRef  M,
const uint8_t *  base 
)
static
template<typename T >
static std::error_code getObject ( const T *&  Obj,
MemoryBufferRef  M,
const void *  Ptr,
const uint64_t  Size = sizeof(T) 
)
static
static imported_symbol_iterator importedSymbolBegin ( uint32_t  RVA,
const COFFObjectFile *  Object 
)
static
static imported_symbol_iterator importedSymbolEnd ( uint32_t  RVA,
const COFFObjectFile *  Object 
)
static
static imported_symbol_iterator makeImportedSymbolIterator ( const COFFObjectFile *  Object,
uintptr_t  Ptr,
int  Index 
)
static

Definition at line 1110 of file COFFObjectFile.cpp.

References P.

Referenced by importedSymbolBegin(), and importedSymbolEnd().