LLVM 20.0.0git
|
Defines the MachO Dynamic Library Reader. More...
Classes | |
struct | ParseOption |
Typedefs | |
using | SymbolToSourceLocMap = llvm::StringMap< RecordLoc > |
Functions | |
Expected< Records > | readFile (MemoryBufferRef Buffer, const ParseOption &Opt) |
Parse Mach-O dynamic libraries to extract TAPI attributes. | |
Expected< std::unique_ptr< InterfaceFile > > | get (MemoryBufferRef Buffer) |
Get TAPI file representation of binary dylib. | |
SymbolToSourceLocMap | accumulateSourceLocFromDSYM (const StringRef DSYM, const Target &T) |
Get the source location for each symbol from dylib. | |
Defines the MachO Dynamic Library Reader.
using llvm::MachO::DylibReader::SymbolToSourceLocMap = typedef llvm::StringMap<RecordLoc> |
Definition at line 47 of file DylibReader.h.
SymbolToSourceLocMap llvm::MachO::DylibReader::accumulateSourceLocFromDSYM | ( | const StringRef | DSYM, |
const Target & | T | ||
) |
Get the source location for each symbol from dylib.
DSYM | Path to DSYM file. |
T | Requested target slice for dylib. |
Definition at line 494 of file DylibReader.cpp.
References accumulateLocs(), llvm::consumeError(), llvm::DWARFContext::create(), llvm::object::createBinary(), DWARFErrorHandler(), llvm::object::MachOObjectFile::findDsymObjectMembers(), llvm::MachO::getArchitectureName(), and llvm::MemoryBuffer::getFile().
Expected< std::unique_ptr< InterfaceFile > > llvm::MachO::DylibReader::get | ( | MemoryBufferRef | Buffer | ) |
Get TAPI file representation of binary dylib.
Buffer | Data that points to dylib. |
Definition at line 428 of file DylibReader.cpp.
References llvm::MachO::convertToInterfaceFile(), Options, and readFile().
Expected< Records > llvm::MachO::DylibReader::readFile | ( | MemoryBufferRef | Buffer, |
const ParseOption & | Opt | ||
) |
Parse Mach-O dynamic libraries to extract TAPI attributes.
Buffer | Data that points to dylib. |
Options | Determines which attributes to extract. |
Definition at line 353 of file DylibReader.cpp.
References llvm::MachO::AK_unknown, llvm::MachO::DylibReader::ParseOption::Archs, assert(), llvm::Function::back(), llvm::Bin, constructTriples(), llvm::consumeError(), llvm::object::createBinary(), llvm::Function::empty(), llvm::MachO::getArchitectureFromCpuType(), llvm::MemoryBufferRef::getBufferIdentifier(), llvm::MachO::ArchitectureSet::has(), load, llvm::MachO::mapToPlatformType(), llvm::MachO::MH_BUNDLE, llvm::MachO::MH_DYLIB, llvm::MachO::MH_DYLIB_STUB, and Results.
Referenced by get().