|
LLVM 22.0.0git
|
Defines the MachO Dynamic Library Reader. More...
Classes | |
| struct | ParseOption |
Typedefs | |
| using | SymbolToSourceLocMap = llvm::StringMap<RecordLoc> |
Functions | |
| LLVM_ABI Expected< Records > | readFile (MemoryBufferRef Buffer, const ParseOption &Opt) |
| Parse Mach-O dynamic libraries to extract TAPI attributes. | |
| LLVM_ABI Expected< std::unique_ptr< InterfaceFile > > | get (MemoryBufferRef Buffer) |
| Get TAPI file representation of binary dylib. | |
| LLVM_ABI SymbolToSourceLocMap | accumulateSourceLocFromDSYM (const StringRef DSYM, const Target &T) |
| Get the source location for each symbol from dylib. | |
Defines the MachO Dynamic Library Reader.
Definition at line 49 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 493 of file DylibReader.cpp.
References accumulateLocs(), llvm::consumeError(), llvm::DWARFContext::create(), llvm::object::createBinary(), DWARFErrorHandler(), llvm::dyn_cast(), llvm::object::MachOObjectFile::findDsymObjectMembers(), llvm::MachO::getArchitectureName(), llvm::MemoryBuffer::getFile(), llvm::DWARFContext::Process, and T.
| 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 427 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 352 of file DylibReader.cpp.
References llvm::MachO::AK_unknown, llvm::MachO::DylibReader::ParseOption::Archs, assert(), llvm::Bin, llvm::cast(), constructTriples(), llvm::consumeError(), llvm::object::createBinary(), llvm::dyn_cast(), llvm::MachO::EmptyResults, llvm::MachO::getArchitectureFromCpuType(), llvm::MemoryBufferRef::getBufferIdentifier(), llvm::MachO::ArchitectureSet::has(), llvm::isa(), load, llvm::make_error(), llvm::MachO::mapToPlatformType(), llvm::MachO::MH_BUNDLE, llvm::MachO::MH_DYLIB, llvm::MachO::MH_DYLIB_STUB, llvm::MachO::NoSuchArchitecture, Results, T, and llvm::MachO::UnsupportedTarget.
Referenced by get().