#include "llvm/Object/IRObjectFile.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/BinaryFormat/Magic.h"
#include "llvm/Bitcode/BitcodeReader.h"
#include "llvm/IR/Module.h"
#include "llvm/Object/ObjectFile.h"
usingnamespacellvm;
usingnamespaceobject;
namespace llvm {
class LLVMContext;
class raw_ostream;
}
IRObjectFile::IRObjectFile(MemoryBufferRef Object,
std::vector<std::unique_ptr<Module>> Mods)
: … { … }
IRObjectFile::~IRObjectFile() = default;
static ModuleSymbolTable::Symbol getSym(DataRefImpl &Symb) { … }
void IRObjectFile::moveSymbolNext(DataRefImpl &Symb) const { … }
Error IRObjectFile::printSymbolName(raw_ostream &OS, DataRefImpl Symb) const { … }
Expected<uint32_t> IRObjectFile::getSymbolFlags(DataRefImpl Symb) const { … }
basic_symbol_iterator IRObjectFile::symbol_begin() const { … }
basic_symbol_iterator IRObjectFile::symbol_end() const { … }
StringRef IRObjectFile::getTargetTriple() const { … }
Expected<MemoryBufferRef>
IRObjectFile::findBitcodeInObject(const ObjectFile &Obj) { … }
Expected<MemoryBufferRef>
IRObjectFile::findBitcodeInMemBuffer(MemoryBufferRef Object) { … }
Expected<std::unique_ptr<IRObjectFile>>
IRObjectFile::create(MemoryBufferRef Object, LLVMContext &Context) { … }
Expected<IRSymtabFile> object::readIRSymtab(MemoryBufferRef MBRef) { … }