#include "llvm/Object/GOFFObjectFile.h"
#include "llvm/BinaryFormat/GOFF.h"
#include "llvm/Object/GOFF.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/Errc.h"
#include "llvm/Support/raw_ostream.h"
#ifndef DEBUG_TYPE
#define DEBUG_TYPE …
#endif
usingnamespacellvm::object;
usingnamespacellvm;
Expected<std::unique_ptr<ObjectFile>>
ObjectFile::createGOFFObjectFile(MemoryBufferRef Object) { … }
GOFFObjectFile::GOFFObjectFile(MemoryBufferRef Object, Error &Err)
: … { … }
const uint8_t *GOFFObjectFile::getSymbolEsdRecord(DataRefImpl Symb) const { … }
Expected<StringRef> GOFFObjectFile::getSymbolName(DataRefImpl Symb) const { … }
Expected<StringRef> GOFFObjectFile::getSymbolName(SymbolRef Symbol) const { … }
Expected<uint64_t> GOFFObjectFile::getSymbolAddress(DataRefImpl Symb) const { … }
uint64_t GOFFObjectFile::getSymbolValueImpl(DataRefImpl Symb) const { … }
uint64_t GOFFObjectFile::getCommonSymbolSizeImpl(DataRefImpl Symb) const { … }
bool GOFFObjectFile::isSymbolUnresolved(DataRefImpl Symb) const { … }
bool GOFFObjectFile::isSymbolIndirect(DataRefImpl Symb) const { … }
Expected<uint32_t> GOFFObjectFile::getSymbolFlags(DataRefImpl Symb) const { … }
Expected<SymbolRef::Type>
GOFFObjectFile::getSymbolType(DataRefImpl Symb) const { … }
Expected<section_iterator>
GOFFObjectFile::getSymbolSection(DataRefImpl Symb) const { … }
uint64_t GOFFObjectFile::getSymbolSize(DataRefImpl Symb) const { … }
const uint8_t *GOFFObjectFile::getSectionEdEsdRecord(DataRefImpl &Sec) const { … }
const uint8_t *GOFFObjectFile::getSectionPrEsdRecord(DataRefImpl &Sec) const { … }
const uint8_t *
GOFFObjectFile::getSectionEdEsdRecord(uint32_t SectionIndex) const { … }
const uint8_t *
GOFFObjectFile::getSectionPrEsdRecord(uint32_t SectionIndex) const { … }
uint32_t GOFFObjectFile::getSectionDefEsdId(DataRefImpl &Sec) const { … }
void GOFFObjectFile::moveSectionNext(DataRefImpl &Sec) const { … }
Expected<StringRef> GOFFObjectFile::getSectionName(DataRefImpl Sec) const { … }
uint64_t GOFFObjectFile::getSectionAddress(DataRefImpl Sec) const { … }
uint64_t GOFFObjectFile::getSectionSize(DataRefImpl Sec) const { … }
Expected<ArrayRef<uint8_t>>
GOFFObjectFile::getSectionContents(DataRefImpl Sec) const { … }
uint64_t GOFFObjectFile::getSectionAlignment(DataRefImpl Sec) const { … }
bool GOFFObjectFile::isSectionText(DataRefImpl Sec) const { … }
bool GOFFObjectFile::isSectionData(DataRefImpl Sec) const { … }
bool GOFFObjectFile::isSectionNoLoad(DataRefImpl Sec) const { … }
bool GOFFObjectFile::isSectionReadOnlyData(DataRefImpl Sec) const { … }
bool GOFFObjectFile::isSectionZeroInit(DataRefImpl Sec) const { … }
section_iterator GOFFObjectFile::section_begin() const { … }
section_iterator GOFFObjectFile::section_end() const { … }
void GOFFObjectFile::moveSymbolNext(DataRefImpl &Symb) const { … }
basic_symbol_iterator GOFFObjectFile::symbol_begin() const { … }
basic_symbol_iterator GOFFObjectFile::symbol_end() const { … }
Error Record::getContinuousData(const uint8_t *Record, uint16_t DataLength,
int DataIndex, SmallString<256> &CompleteData) { … }
Error HDRRecord::getData(const uint8_t *Record,
SmallString<256> &CompleteData) { … }
Error ESDRecord::getData(const uint8_t *Record,
SmallString<256> &CompleteData) { … }
Error TXTRecord::getData(const uint8_t *Record,
SmallString<256> &CompleteData) { … }
Error ENDRecord::getData(const uint8_t *Record,
SmallString<256> &CompleteData) { … }