LLVM: llvm::object::IRObjectFile Class Reference (original) (raw)
#include "[llvm/Object/IRObjectFile.h](IRObjectFile%5F8h%5Fsource.html)"
| 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. | |
| 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. | |
| 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, 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 Public Member Functions inherited from llvm::object::Binary | |
| static Error | 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_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_GOFF, ID_Wasm, ID_DXContainer, 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 28 of file IRObjectFile.h.
◆ module_iterator
Initial value:
A Module instance is used to store all the information related to an LLVM module.
An iterator type that allows iterating over the pointees via some other iterator.
Definition at line 50 of file IRObjectFile.h.
| IRObjectFile::~IRObjectFile ( ) | overridedefault |
|---|
◆ classof()
◆ create()
◆ findBitcodeInMemBuffer()
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 89 of file IRObjectFile.cpp.
References llvm::file_magic::bitcode, llvm::file_magic::coff_object, llvm::object::ObjectFile::createObjectFile(), llvm::file_magic::elf_relocatable, llvm::errorCodeToError(), findBitcodeInObject(), llvm::Expected< T >::get(), llvm::identify_magic(), llvm::object::invalid_file_type, llvm::file_magic::macho_object, llvm::Expected< T >::takeError(), and llvm::file_magic::wasm_object.
Referenced by create(), llvm::LTOModule::getProducerString(), llvm::LTOModule::isBitcodeFile(), llvm::LTOModule::isBitcodeFile(), llvm::LTOModule::isBitcodeForTarget(), parseBitcodeFileImpl(), and llvm::object::readIRSymtab().
◆ findBitcodeInObject()
◆ getSymbolFlags()
◆ getTargetTriple()
| StringRef IRObjectFile::getTargetTriple | ( | ) | const |
|---|
◆ is64Bit()
| bool llvm::object::IRObjectFile::is64Bit ( ) const | inlineoverridevirtual |
|---|
◆ module_begin()
| module_iterator llvm::object::IRObjectFile::module_begin ( ) const | inline |
|---|
◆ module_end()
| module_iterator llvm::object::IRObjectFile::module_end ( ) const | inline |
|---|
◆ modules()
◆ moveSymbolNext()
| void IRObjectFile::moveSymbolNext ( DataRefImpl & Symb) const | overridevirtual |
|---|
◆ printSymbolName()
◆ symbol_begin()
◆ symbol_end()
The documentation for this class was generated from the following files:
- include/llvm/Object/IRObjectFile.h
- lib/Object/IRObjectFile.cpp