diff options
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFDebugInfoEntry.cpp')
| -rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFDebugInfoEntry.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugInfoEntry.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugInfoEntry.cpp index 7ebb0092c34a..385bde51e2e7 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFDebugInfoEntry.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugInfoEntry.cpp @@ -19,18 +19,11 @@ using namespace llvm; using namespace dwarf; -bool DWARFDebugInfoEntry::extractFast(const DWARFUnit &U, - uint64_t *OffsetPtr) { - DWARFDataExtractor DebugInfoData = U.getDebugInfoExtractor(); - const uint64_t UEndOffset = U.getNextUnitOffset(); - return extractFast(U, OffsetPtr, DebugInfoData, UEndOffset, 0); -} - bool DWARFDebugInfoEntry::extractFast(const DWARFUnit &U, uint64_t *OffsetPtr, const DWARFDataExtractor &DebugInfoData, - uint64_t UEndOffset, uint32_t D) { + uint64_t UEndOffset, uint32_t ParentIdx) { Offset = *OffsetPtr; - Depth = D; + this->ParentIdx = ParentIdx; if (Offset >= UEndOffset) { U.getContext().getWarningHandler()( createStringError(errc::invalid_argument, |
