LLVM
8.0.1
|
#include "llvm/Object/IRObjectFile.h"
Public Types | |
using | module_iterator = pointee_iterator< std::vector< std::unique_ptr< Module > >::const_iterator, const Module > |
Public Types inherited from llvm::object::SymbolicFile | |
using | basic_symbol_iterator_range = iterator_range< basic_symbol_iterator > |
Static Public Member Functions | |
static bool | classof (const Binary *v) |
static Expected< MemoryBufferRef > | findBitcodeInObject (const ObjectFile &Obj) |
Finds and returns bitcode embedded in the given object file, or an error code if not found. More... | |
static Expected< MemoryBufferRef > | findBitcodeInMemBuffer (MemoryBufferRef Object) |
Finds and returns bitcode in the given memory buffer (which may be either a bitcode file or a native object file with embedded bitcode), or an error code if not found. More... | |
static Expected< std::unique_ptr< IRObjectFile > > | create (MemoryBufferRef Object, LLVMContext &Context) |
Static Public Member Functions inherited from llvm::object::SymbolicFile | |
static Expected< std::unique_ptr< SymbolicFile > > | createSymbolicFile (MemoryBufferRef Object, llvm::file_magic Type, LLVMContext *Context) |
static Expected< std::unique_ptr< SymbolicFile > > | createSymbolicFile (MemoryBufferRef Object) |
static Expected< OwningBinary< SymbolicFile > > | createSymbolicFile (StringRef ObjectPath) |
static bool | classof (const Binary *v) |
Static Public Member Functions inherited from llvm::object::Binary | |
static std::error_code | checkOffset (MemoryBufferRef M, uintptr_t Addr, const uint64_t Size) |
Additional Inherited Members | |
Protected Types inherited from llvm::object::Binary | |
enum | { ID_Archive, ID_MachOUniversalBinary, ID_COFFImportFile, ID_IR, ID_WinRes, ID_StartObjects, ID_COFF, ID_ELF32L, ID_ELF32B, ID_ELF64L, ID_ELF64B, ID_MachO32L, ID_MachO32B, ID_MachO64L, ID_MachO64B, ID_Wasm, ID_EndObjects } |
Protected Member Functions inherited from llvm::object::Binary | |
Binary (unsigned int Type, MemoryBufferRef Source) | |
Static Protected Member Functions inherited from llvm::object::Binary | |
static unsigned int | getELFType (bool isLE, bool is64Bits) |
static unsigned int | getMachOType (bool isLE, bool is64Bits) |
Protected Attributes inherited from llvm::object::Binary | |
MemoryBufferRef | Data |
Definition at line 32 of file IRObjectFile.h.
using llvm::object::IRObjectFile::module_iterator = pointee_iterator<std::vector<std::unique_ptr<Module> >::const_iterator, const Module> |
Definition at line 55 of file IRObjectFile.h.
|
override |
Definition at line 36 of file IRObjectFile.cpp.
Definition at line 49 of file IRObjectFile.h.
References llvm::object::Binary::isIR().
|
static |
Definition at line 110 of file IRObjectFile.cpp.
References llvm::getBitcodeModuleList(), and llvm::Expected< T >::takeError().
Referenced by modules(), and llvm::object::SymbolicFile::SymbolicFile().
|
static |
Finds and returns bitcode in the given memory buffer (which may be either a bitcode file or a native object file with embedded bitcode), or an error code if not found.
Definition at line 90 of file IRObjectFile.cpp.
References bitcode, llvm::errorCodeToError(), llvm::Expected< T >::get(), llvm::MemoryBufferRef::getBuffer(), llvm::identify_magic(), and llvm::Expected< T >::takeError().
Referenced by modules().
|
static |
Finds and returns bitcode embedded in the given object file, or an error code if not found.
Definition at line 76 of file IRObjectFile.cpp.
References llvm::errorCodeToError(), llvm::object::Binary::getFileName(), and llvm::object::ObjectFile::sections().
Referenced by modules(), and llvm::object::SymbolicFile::SymbolicFile().
|
overridevirtual |
Implements llvm::object::SymbolicFile.
Definition at line 52 of file IRObjectFile.cpp.
References getSym().
StringRef IRObjectFile::getTargetTriple | ( | ) | const |
Definition at line 69 of file IRObjectFile.cpp.
|
inline |
Definition at line 57 of file IRObjectFile.h.
Referenced by modules().
|
inline |
Definition at line 58 of file IRObjectFile.h.
Referenced by modules().
|
inline |
Definition at line 60 of file IRObjectFile.h.
References Context, create(), findBitcodeInMemBuffer(), findBitcodeInObject(), llvm::make_range(), module_begin(), and module_end().
|
overridevirtual |
Implements llvm::object::SymbolicFile.
Definition at line 42 of file IRObjectFile.cpp.
References llvm::object::DataRefImpl::p, and llvm::ARMBuildAttrs::Symbol.
|
overridevirtual |
Implements llvm::object::SymbolicFile.
Definition at line 46 of file IRObjectFile.cpp.
References getSym().
|
overridevirtual |
Implements llvm::object::SymbolicFile.
Definition at line 56 of file IRObjectFile.cpp.
References llvm::object::DataRefImpl::p, and llvm::MipsISD::Ret.
|
overridevirtual |
Implements llvm::object::SymbolicFile.
Definition at line 62 of file IRObjectFile.cpp.
References llvm::object::DataRefImpl::p, and llvm::MipsISD::Ret.