LLVM 20.0.0git
Classes | Typedefs | Functions
llvm::MachO::DylibReader Namespace Reference

Defines the MachO Dynamic Library Reader. More...

Classes

struct  ParseOption
 

Typedefs

using SymbolToSourceLocMap = llvm::StringMap< RecordLoc >
 

Functions

Expected< RecordsreadFile (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.
 

Detailed Description

Defines the MachO Dynamic Library Reader.

Typedef Documentation

◆ SymbolToSourceLocMap

Definition at line 47 of file DylibReader.h.

Function Documentation

◆ accumulateSourceLocFromDSYM()

SymbolToSourceLocMap llvm::MachO::DylibReader::accumulateSourceLocFromDSYM ( const StringRef  DSYM,
const Target T 
)

Get the source location for each symbol from dylib.

Parameters
DSYMPath to DSYM file.
TRequested 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().

◆ get()

Expected< std::unique_ptr< InterfaceFile > > llvm::MachO::DylibReader::get ( MemoryBufferRef  Buffer)

Get TAPI file representation of binary dylib.

Parameters
BufferData that points to dylib.

Definition at line 428 of file DylibReader.cpp.

References llvm::MachO::convertToInterfaceFile(), Options, and readFile().

◆ readFile()

Expected< Records > llvm::MachO::DylibReader::readFile ( MemoryBufferRef  Buffer,
const ParseOption Opt 
)