LLVM
17.0.0git
|
#include "llvm/Object/IRObjectFile.h"
Public Types | |
using | module_iterator = pointee_iterator< std::vector< std::unique_ptr< Module > >::const_iterator, const Module > |
![]() | |
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 Expected< std::unique_ptr< SymbolicFile > > | createSymbolicFile (MemoryBufferRef Object, llvm::file_magic Type, LLVMContext *Context, bool InitContent=true) |
static Expected< std::unique_ptr< SymbolicFile > > | createSymbolicFile (MemoryBufferRef Object) |
static bool | classof (const Binary *v) |
static bool | isSymbolicFile (file_magic Type, const LLVMContext *Context) |
![]() | |
static Error | checkOffset (MemoryBufferRef M, uintptr_t Addr, const uint64_t Size) |
Additional Inherited Members | |
![]() | |
enum | { ID_Archive, ID_MachOUniversalBinary, ID_COFFImportFile, ID_IR, ID_TapiUniversal, ID_TapiFile, ID_Minidump, ID_WinRes, ID_Offload, ID_StartObjects, ID_COFF, ID_XCOFF32, ID_XCOFF64, ID_ELF32L, ID_ELF32B, ID_ELF64L, ID_ELF64B, ID_MachO32L, ID_MachO32B, ID_MachO64L, ID_MachO64B, ID_Wasm, ID_EndObjects } |
![]() | |
Binary (unsigned int Type, MemoryBufferRef Source) | |
![]() | |
static unsigned int | getELFType (bool isLE, bool is64Bits) |
static unsigned int | getMachOType (bool isLE, bool is64Bits) |
![]() | |
MemoryBufferRef | Data |
Definition at line 27 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 49 of file IRObjectFile.h.
|
overridedefault |
Definition at line 43 of file IRObjectFile.h.
References llvm::object::Binary::isIR().
|
static |
Definition at line 111 of file IRObjectFile.cpp.
References Context, llvm::getBitcodeModuleList(), move, llvm::Object, and llvm::Expected< T >::takeError().
Referenced by llvm::object::MachOUniversalBinary::ObjectForArch::getAsIRObject().
|
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::identify_magic(), llvm::Object, and llvm::Expected< T >::takeError().
|
static |
Finds and returns bitcode embedded in the given object file, or an error code if not found.
Definition at line 74 of file IRObjectFile.cpp.
References llvm::errorCodeToError(), llvm::object::Binary::getFileName(), llvm::object::ObjectFile::sections(), and llvm::Expected< T >::takeError().
|
overridevirtual |
Implements llvm::object::SymbolicFile.
Definition at line 50 of file IRObjectFile.cpp.
References getSym().
StringRef IRObjectFile::getTargetTriple | ( | ) | const |
Definition at line 67 of file IRObjectFile.cpp.
Referenced by llvm::object::Slice::create().
|
inline |
Definition at line 51 of file IRObjectFile.h.
Referenced by modules().
|
inline |
Definition at line 52 of file IRObjectFile.h.
Referenced by modules().
|
inline |
Definition at line 54 of file IRObjectFile.h.
References llvm::make_range(), module_begin(), and module_end().
|
overridevirtual |
Implements llvm::object::SymbolicFile.
Definition at line 41 of file IRObjectFile.cpp.
References llvm::object::DataRefImpl::p, and llvm::ARMBuildAttrs::Symbol.
|
overridevirtual |
Implements llvm::object::SymbolicFile.
Definition at line 45 of file IRObjectFile.cpp.
References getSym().
|
overridevirtual |
Implements llvm::object::SymbolicFile.
Definition at line 54 of file IRObjectFile.cpp.
References llvm::MipsISD::Ret.
|
overridevirtual |
Implements llvm::object::SymbolicFile.
Definition at line 60 of file IRObjectFile.cpp.
References llvm::MipsISD::Ret.