14 #ifndef LLVM_OBJECT_IROBJECTFILE_H
15 #define LLVM_OBJECT_IROBJECTFILE_H
33 std::vector<std::unique_ptr<Module>> Mods;
36 std::vector<std::unique_ptr<Module>> Mods);
70 std::vector<BitcodeModule>
Mods;
Represents either an error or a value T.
This class is the base class for all object file types.
irsymtab::Reader TheReader
Tagged union holding either a T or a Error.
basic_symbol_iterator symbol_begin() const override
The contents of a bitcode file and its irsymtab.
static ErrorOr< MemoryBufferRef > findBitcodeInMemBuffer(MemoryBufferRef Object)
Finds and returns bitcode in the given memory buffer (which may be either a bitcode file or a native ...
std::error_code printSymbolName(raw_ostream &OS, DataRefImpl Symb) const override
static Expected< std::unique_ptr< IRObjectFile > > create(MemoryBufferRef Object, LLVMContext &Context)
basic_symbol_iterator symbol_end() const override
This is an important class for using LLVM in a threaded context.
std::vector< BitcodeModule > Mods
StringRef getTargetTriple() const
static bool classof(const Binary *v)
SmallVector< char, 0 > Strtab
void moveSymbolNext(DataRefImpl &Symb) const override
static ErrorOr< MemoryBufferRef > findBitcodeInObject(const ObjectFile &Obj)
Finds and returns bitcode embedded in the given object file, or an error code if not found...
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.
Expected< IRSymtabFile > readIRSymtab(MemoryBufferRef MBRef)
Reads a bitcode file, creating its irsymtab if necessary.
SmallVector< char, 0 > Symtab
uint32_t getSymbolFlags(DataRefImpl Symb) const override
This class can be used to read a Symtab and Strtab produced by irsymtab::build.