|
LLVM
5.0.0
|
#include "llvm/ADT/ArrayRef.h"#include "llvm/ADT/StringRef.h"#include "llvm/ADT/Triple.h"#include "llvm/ADT/iterator_range.h"#include "llvm/BinaryFormat/COFF.h"#include "llvm/Object/Binary.h"#include "llvm/Object/COFF.h"#include "llvm/Object/Error.h"#include "llvm/Object/ObjectFile.h"#include "llvm/Support/BinaryStreamReader.h"#include "llvm/Support/Endian.h"#include "llvm/Support/Error.h"#include "llvm/Support/ErrorHandling.h"#include "llvm/Support/MathExtras.h"#include "llvm/Support/MemoryBuffer.h"#include <algorithm>#include <cassert>#include <cstddef>#include <cstdint>#include <cstring>#include <limits>#include <memory>#include <system_error>Go to the source code of this file.
Macros | |
| #define | LLVM_COFF_SWITCH_RELOC_TYPE_NAME(reloc_type) |
| #define | RETURN_IF_ERROR(X) |
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_relocation * | getFirstReloc (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) |
| #define LLVM_COFF_SWITCH_RELOC_TYPE_NAME | ( | reloc_type | ) |
Definition at line 1168 of file COFFObjectFile.cpp.
Referenced by llvm::object::COFFObjectFile::getRelocationTypeName().
| #define RETURN_IF_ERROR | ( | X | ) |
Definition at line 1645 of file COFFObjectFile.cpp.
|
static |
Definition at line 55 of file COFFObjectFile.cpp.
References llvm::MemoryBufferRef::getBufferEnd(), llvm::MemoryBufferRef::getBufferStart(), and llvm::object::unexpected_eof.
Referenced by getFirstReloc(), getObject(), and llvm::object::COFFObjectFile::toSymb().
|
static |
Definition at line 47 of file COFFObjectFile.cpp.
References llvm::MemoryBufferRef::getBufferSize(), llvm::AMDGPU::CodeObject::Kernel::Arg::Key::Size, and llvm::object::unexpected_eof.
Referenced by llvm::object::COFFObjectFile::COFFObjectFile().
Definition at line 80 of file COFFObjectFile.cpp.
References assert(), llvm::StringRef::empty(), llvm::max(), llvm::StringRef::size(), and llvm::StringRef::substr().
|
static |
Definition at line 375 of file COFFObjectFile.cpp.
References llvm::sys::path::begin(), checkOffset(), and getNumberOfRelocations().
Referenced by llvm::object::COFFObjectFile::getRelocations(), llvm::object::COFFObjectFile::section_rel_begin(), and llvm::object::COFFObjectFile::section_rel_end().
|
static |
Definition at line 357 of file COFFObjectFile.cpp.
References getObject().
Referenced by getFirstReloc(), llvm::object::COFFObjectFile::getRelocations(), and llvm::object::COFFObjectFile::section_rel_end().
|
static |
Definition at line 68 of file COFFObjectFile.cpp.
References checkOffset(), and llvm::AMDGPU::CodeObject::Kernel::Arg::Key::Size.
Referenced by llvm::object::COFFObjectFile::COFFObjectFile(), llvm::object::ImportDirectoryEntryRef::getImportTableEntry(), and getNumberOfRelocations().
|
static |
Definition at line 1304 of file COFFObjectFile.cpp.
References makeImportedSymbolIterator().
Referenced by llvm::object::ImportDirectoryEntryRef::imported_symbol_begin(), llvm::object::DelayImportDirectoryEntryRef::imported_symbol_begin(), and llvm::object::ImportDirectoryEntryRef::lookup_table_begin().
|
static |
Definition at line 1311 of file COFFObjectFile.cpp.
References makeImportedSymbolIterator().
Referenced by llvm::object::ImportDirectoryEntryRef::imported_symbol_end(), llvm::object::DelayImportDirectoryEntryRef::imported_symbol_end(), and llvm::object::ImportDirectoryEntryRef::lookup_table_end().
|
static |
Definition at line 1293 of file COFFObjectFile.cpp.
Referenced by importedSymbolBegin(), and importedSymbolEnd().
1.8.6