LLVM: lib/TextAPI/BinaryReader/DylibReader.cpp File Reference (original) (raw)

Go to the source code of this file.

Typedefs
using TripleVec = std::vector<Triple>
Functions
static TripleVec::iterator emplace (TripleVec &Container, Triple &&T)
static TripleVec constructTriples (MachOObjectFile *Obj, const Architecture ArchT)
static Error readMachOHeader (MachOObjectFile *Obj, RecordsSlice &Slice)
static Error readSymbols (MachOObjectFile *Obj, RecordsSlice &Slice, const ParseOption &Opt)
static Error load (MachOObjectFile *Obj, RecordsSlice &Slice, const ParseOption &Opt, const Architecture Arch)
static void DWARFErrorHandler (Error Err)
static SymbolToSourceLocMap accumulateLocs (MachOObjectFile &Obj, const std::unique_ptr< DWARFContext > &DiCtx)

TripleVec

accumulateLocs()

constructTriples()

DWARFErrorHandler()

void DWARFErrorHandler ( Error Err) static

emplace()

TripleVec::iterator emplace ( TripleVec & Container, Triple && T ) static

load()

readMachOHeader()

Definition at line 144 of file DylibReader.cpp.

References H, I, llvm_unreachable, llvm::MachO::MachO_Bundle, llvm::MachO::MachO_DynamicLibrary, llvm::MachO::MachO_DynamicLibrary_Stub, llvm::MachO::MH_APP_EXTENSION_SAFE, llvm::MachO::MH_BUNDLE, llvm::MachO::MH_DYLIB, llvm::MachO::MH_DYLIB_STUB, llvm::MachO::MH_TWOLEVEL, and llvm::Error::success().

Referenced by load().

readSymbols()

Definition at line 248 of file DylibReader.cpp.

References llvm::MachO::Data, llvm::StringMap< ValueTy, AllocatorTy >::end(), llvm::MachO::EXPORT_SYMBOL_FLAGS_KIND_MASK, llvm::MachO::EXPORT_SYMBOL_FLAGS_KIND_REGULAR, llvm::MachO::EXPORT_SYMBOL_FLAGS_KIND_THREAD_LOCAL, llvm::MachO::EXPORT_SYMBOL_FLAGS_REEXPORT, llvm::MachO::EXPORT_SYMBOL_FLAGS_WEAK_DEFINITION, llvm::MachO::Exported, llvm::StringMap< ValueTy, AllocatorTy >::find(), llvm::MachO::GlobalRecord::Function, llvm::MachO::Internal, Linkage, llvm::MachO::None, llvm::MachO::Rexported, llvm::object::BasicSymbolRef::SF_Exported, llvm::object::BasicSymbolRef::SF_Hidden, llvm::object::BasicSymbolRef::SF_Undefined, llvm::object::BasicSymbolRef::SF_Weak, llvm::object::SymbolRef::ST_Function, llvm::Error::success(), llvm::MachO::Text, llvm::MachO::ThreadLocalValue, llvm::MachO::Undefined, llvm::MachO::DylibReader::ParseOption::Undefineds, llvm::MachO::GlobalRecord::Unknown, llvm::MachO::Unknown, llvm::MachO::GlobalRecord::Variable, llvm::MachO::WeakDefined, and llvm::MachO::WeakReferenced.

Referenced by load().