#include "llvm/Object/TapiFile.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/BinaryFormat/MachO.h"
#include "llvm/Object/Error.h"
#include "llvm/Support/MemoryBufferRef.h"
#include "llvm/TextAPI/ArchitectureSet.h"
#include "llvm/TextAPI/InterfaceFile.h"
#include "llvm/TextAPI/Platform.h"
#include "llvm/TextAPI/Symbol.h"
usingnamespacellvm;
usingnamespaceMachO;
usingnamespaceobject;
static uint32_t getFlags(const Symbol *Sym) { … }
static SymbolRef::Type getType(const Symbol *Sym) { … }
TapiFile::TapiFile(MemoryBufferRef Source, const InterfaceFile &Interface,
Architecture Arch)
: … { … }
TapiFile::~TapiFile() = default;
void TapiFile::moveSymbolNext(DataRefImpl &DRI) const { … }
Error TapiFile::printSymbolName(raw_ostream &OS, DataRefImpl DRI) const { … }
Expected<SymbolRef::Type> TapiFile::getSymbolType(DataRefImpl DRI) const { … }
Expected<uint32_t> TapiFile::getSymbolFlags(DataRefImpl DRI) const { … }
basic_symbol_iterator TapiFile::symbol_begin() const { … }
basic_symbol_iterator TapiFile::symbol_end() const { … }