class IRObjectFile
Declaration
class IRObjectFile : public SymbolicFile { /* full declaration omitted */ };
Declared at: llvm/include/llvm/Object/IRObjectFile.h:27
Inherits from: SymbolicFile
Member Variables
- private std::vector<std::unique_ptr<Module>> Mods
- private llvm::ModuleSymbolTable SymTab
Inherited from Binary:
Method Overview
- private IRObjectFile(llvm::MemoryBufferRef Object, std::vector<std::unique_ptr<Module>> Mods)
- public static bool classof(const llvm::object::Binary * v)
- public static Expected<std::unique_ptr<IRObjectFile>> create(llvm::MemoryBufferRef Object, llvm::LLVMContext & Context)
- public static Expected<llvm::MemoryBufferRef> findBitcodeInMemBuffer(llvm::MemoryBufferRef Object)
- public static Expected<llvm::MemoryBufferRef> findBitcodeInObject(const llvm::object::ObjectFile & Obj)
- public Expected<uint32_t> getSymbolFlags(llvm::object::DataRefImpl Symb) const
- public llvm::StringRef getTargetTriple() const
- public llvm::object::IRObjectFile::module_iterator module_begin() const
- public llvm::object::IRObjectFile::module_iterator module_end() const
- public iterator_range<llvm::object::IRObjectFile::module_iterator> modules() const
- public void moveSymbolNext(llvm::object::DataRefImpl & Symb) const
- public llvm::Error printSymbolName(llvm::raw_ostream & OS, llvm::object::DataRefImpl Symb) const
- public llvm::object::basic_symbol_iterator symbol_begin() const
- public llvm::object::basic_symbol_iterator symbol_end() const
- public ~IRObjectFile()
Inherited from SymbolicFile:
- public classof
- public createSymbolicFile
- public createSymbolicFile
- public getSymbolFlags
- public isSymbolicFile
- public moveSymbolNext
- public printSymbolName
- public symbol_begin
- public symbol_end
- public symbols
Inherited from Binary:
- public checkOffset
- public getData
- protected getELFType
- public getFileName
- protected getMachOType
- public getMemoryBufferRef
- public getTripleObjectFormat
- public getType
- public initContent
- public isArchive
- public isCOFF
- public isCOFFImportFile
- public isELF
- public isIR
- public isLittleEndian
- public isMachO
- public isMachOUniversalBinary
- public isMinidump
- public isObject
- public isOffloadFile
- public isSymbolic
- public isTapiFile
- public isTapiUniversal
- public isWasm
- public isWinRes
- public isXCOFF
Methods
¶IRObjectFile(
llvm::MemoryBufferRef Object,
std::vector<std::unique_ptr<Module>> Mods)
IRObjectFile(
llvm::MemoryBufferRef Object,
std::vector<std::unique_ptr<Module>> Mods)
Declared at: llvm/include/llvm/Object/IRObjectFile.h:30
Parameters
- llvm::MemoryBufferRef Object
- std::vector<std::unique_ptr<Module>> Mods
¶static bool classof(const llvm::object::Binary* v)
static bool classof(const llvm::object::Binary* v)
Declared at: llvm/include/llvm/Object/IRObjectFile.h:43
Parameters
- const llvm::object::Binary* v
¶static Expected<std::unique_ptr<IRObjectFile>>
create(llvm::MemoryBufferRef Object,
llvm::LLVMContext& Context)
static Expected<std::unique_ptr<IRObjectFile>>
create(llvm::MemoryBufferRef Object,
llvm::LLVMContext& Context)
Declared at: llvm/include/llvm/Object/IRObjectFile.h:68
Parameters
- llvm::MemoryBufferRef Object
- llvm::LLVMContext& Context
¶static Expected<llvm::MemoryBufferRef>
findBitcodeInMemBuffer(
llvm::MemoryBufferRef Object)
static Expected<llvm::MemoryBufferRef>
findBitcodeInMemBuffer(
llvm::MemoryBufferRef Object)
Description
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.
Declared at: llvm/include/llvm/Object/IRObjectFile.h:66
Parameters
- llvm::MemoryBufferRef Object
¶static Expected<llvm::MemoryBufferRef>
findBitcodeInObject(
const llvm::object::ObjectFile& Obj)
static Expected<llvm::MemoryBufferRef>
findBitcodeInObject(
const llvm::object::ObjectFile& Obj)
Description
Finds and returns bitcode embedded in the given object file, or an error code if not found.
Declared at: llvm/include/llvm/Object/IRObjectFile.h:60
Parameters
- const llvm::object::ObjectFile& Obj
¶Expected<uint32_t> getSymbolFlags(
llvm::object::DataRefImpl Symb) const
Expected<uint32_t> getSymbolFlags(
llvm::object::DataRefImpl Symb) const
Declared at: llvm/include/llvm/Object/IRObjectFile.h:37
Parameters
¶llvm::StringRef getTargetTriple() const
llvm::StringRef getTargetTriple() const
Declared at: llvm/include/llvm/Object/IRObjectFile.h:41
¶llvm::object::IRObjectFile::module_iterator
module_begin() const
llvm::object::IRObjectFile::module_iterator
module_begin() const
Declared at: llvm/include/llvm/Object/IRObjectFile.h:51
¶llvm::object::IRObjectFile::module_iterator
module_end() const
llvm::object::IRObjectFile::module_iterator
module_end() const
Declared at: llvm/include/llvm/Object/IRObjectFile.h:52
¶iterator_range<
llvm::object::IRObjectFile::module_iterator>
modules() const
iterator_range<
llvm::object::IRObjectFile::module_iterator>
modules() const
Declared at: llvm/include/llvm/Object/IRObjectFile.h:54
¶void moveSymbolNext(
llvm::object::DataRefImpl& Symb) const
void moveSymbolNext(
llvm::object::DataRefImpl& Symb) const
Declared at: llvm/include/llvm/Object/IRObjectFile.h:35
Parameters
¶llvm::Error printSymbolName(
llvm::raw_ostream& OS,
llvm::object::DataRefImpl Symb) const
llvm::Error printSymbolName(
llvm::raw_ostream& OS,
llvm::object::DataRefImpl Symb) const
Declared at: llvm/include/llvm/Object/IRObjectFile.h:36
Parameters
¶llvm::object::basic_symbol_iterator symbol_begin()
const
llvm::object::basic_symbol_iterator symbol_begin()
const
Declared at: llvm/include/llvm/Object/IRObjectFile.h:38
¶llvm::object::basic_symbol_iterator symbol_end()
const
llvm::object::basic_symbol_iterator symbol_end()
const
Declared at: llvm/include/llvm/Object/IRObjectFile.h:39
¶~IRObjectFile()
~IRObjectFile()
Declared at: llvm/include/llvm/Object/IRObjectFile.h:34