LLVM: llvm::MachO::DylibReader Namespace Reference (original) (raw)

Defines the MachO Dynamic Library Reader. More...

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.

SymbolToSourceLocMap

accumulateSourceLocFromDSYM()

Get the source location for each symbol from dylib.

Parameters

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.

get()

readFile()

Parse Mach-O dynamic libraries to extract TAPI attributes.

Parameters

Buffer Data that points to dylib.
Options Determines which attributes to extract.

Returns

List of record slices.

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().