diff options
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp b/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp index e5d33e13644..2eb7d2f945a 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp @@ -637,30 +637,6 @@ Expected<DWARFAddressRangesVector> DWARFUnit::collectAddressRanges() { return *CUDIERangesOrError; } -Expected<DWARFLocationExpressionsVector> -DWARFUnit::findLoclistFromOffset(uint64_t Offset) { - DWARFLocationExpressionsVector Result; - - Error InterpretationError = Error::success(); - - Error ParseError = getLocationTable().visitAbsoluteLocationList( - Offset, getBaseAddress(), - [this](uint32_t Index) { return getAddrOffsetSectionItem(Index); }, - [&](Expected<DWARFLocationExpression> L) { - if (L) - Result.push_back(std::move(*L)); - else - InterpretationError = - joinErrors(L.takeError(), std::move(InterpretationError)); - return !InterpretationError; - }); - - if (ParseError || InterpretationError) - return joinErrors(std::move(ParseError), std::move(InterpretationError)); - - return Result; -} - void DWARFUnit::updateAddressDieMap(DWARFDie Die) { if (Die.isSubroutineDIE()) { auto DIERangesOrError = Die.getAddressRanges(); |