LLVM API Documentation
#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>
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 LLVM_COFF_SWITCH_RELOC_TYPE_NAME | ( | reloc_type | ) |
case COFF::reloc_type: \
Res = #reloc_type; \
break;
Definition at line 916 of file COFFObjectFile.cpp.
Referenced by llvm::object::COFFObjectFile::getRelocationTypeName().
| static bool checkSize | ( | MemoryBufferRef | M, |
| std::error_code & | EC, | ||
| uint64_t | Size | ||
| ) | [static] |
Definition at line 33 of file COFFObjectFile.cpp.
References llvm::MemoryBufferRef::getBufferSize(), and llvm::object::unexpected_eof.
Referenced by llvm::object::COFFObjectFile::COFFObjectFile().
| static bool decodeBase64StringEntry | ( | StringRef | Str, |
| uint32_t & | Result | ||
| ) | [static] |
Definition at line 58 of file COFFObjectFile.cpp.
References llvm::StringRef::empty(), llvm::StringRef::size(), and llvm::StringRef::substr().
| static uint32_t getNumberOfRelocations | ( | const coff_section * | Sec, |
| const uint8_t * | base | ||
| ) | [static] |
Definition at line 377 of file COFFObjectFile.cpp.
References llvm::object::coff_section::hasExtendedRelocations(), llvm::object::coff_section::NumberOfRelocations, llvm::object::coff_section::PointerToRelocations, and llvm::object::coff_relocation::VirtualAddress.
Referenced by llvm::object::COFFObjectFile::section_rel_end().
| static std::error_code getObject | ( | const T *& | Obj, |
| MemoryBufferRef | M, | ||
| const uint8_t * | Ptr, | ||
| const size_t | Size = sizeof(T) |
||
| ) | [static] |
Definition at line 44 of file COFFObjectFile.cpp.
References llvm::MemoryBufferRef::getBufferEnd(), llvm::object::success, and llvm::object::unexpected_eof.
Referenced by llvm::object::COFFObjectFile::COFFObjectFile().