Changeset View
Changeset View
Standalone View
Standalone View
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDwo.cpp
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | if (const llvm::DWARFUnitIndex::Entry *entry = index.getFromHash(hash)) { | ||||
unit_contrib->Offset)); | unit_contrib->Offset)); | ||||
} | } | ||||
return nullptr; | return nullptr; | ||||
} | } | ||||
DWARFCompileUnit *cu = FindSingleCompileUnit(); | DWARFCompileUnit *cu = FindSingleCompileUnit(); | ||||
if (!cu) | if (!cu) | ||||
return nullptr; | return nullptr; | ||||
if (hash != cu->GetDWOId()) | llvm::Optional<uint64_t> dwo_id = cu->GetDWOId(); | ||||
if (!dwo_id || hash != *dwo_id) | |||||
return nullptr; | return nullptr; | ||||
return cu; | return cu; | ||||
} | } | ||||
DWARFCompileUnit *SymbolFileDWARFDwo::FindSingleCompileUnit() { | DWARFCompileUnit *SymbolFileDWARFDwo::FindSingleCompileUnit() { | ||||
DWARFDebugInfo &debug_info = DebugInfo(); | DWARFDebugInfo &debug_info = DebugInfo(); | ||||
// Right now we only support dwo files with one compile unit. If we don't have | // Right now we only support dwo files with one compile unit. If we don't have | ||||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |