summaryrefslogtreecommitdiff
path: root/bolt/lib/Core/DebugData.cpp
diff options
context:
space:
mode:
authorAlexander Yermolovich <ayermolo@fb.com>2023-01-10 10:33:23 -0800
committerAlexander Yermolovich <ayermolo@fb.com>2023-01-10 10:33:52 -0800
commitfa3fa4d0d42326005dfd5887bf047b86904d3be6 (patch)
tree4d0ebf2a5f7f236eb633b1d8a1523e4f994b7adc /bolt/lib/Core/DebugData.cpp
parent35acc32b3e6535213d3ec651c9b7870cf74fe0ec (diff)
[llvm][dwwarf] Change CU/TU index to 64-bit
Changed contribution data structure to 64 bit. I added the 32bit and 64bit accessors to make it explicit where we use 32bit and where we use 64bit. Also to make sure sure we catch all the cases where this data structure is used. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D139379
Diffstat (limited to 'bolt/lib/Core/DebugData.cpp')
-rw-r--r--bolt/lib/Core/DebugData.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/bolt/lib/Core/DebugData.cpp b/bolt/lib/Core/DebugData.cpp
index fa5505ad78aa..2cbd119e69fe 100644
--- a/bolt/lib/Core/DebugData.cpp
+++ b/bolt/lib/Core/DebugData.cpp
@@ -1241,8 +1241,8 @@ void DebugAbbrevWriter::addUnitAbbreviations(DWARFUnit &Unit) {
const DWARFUnitIndex::Entry::SectionContribution *DWOContrubution =
DWOEntry->getContribution(DWARFSectionKind::DW_SECT_ABBREV);
- AbbrevContents = AbbrevSectionContents.substr(DWOContrubution->Offset,
- DWOContrubution->Length);
+ AbbrevContents = AbbrevSectionContents.substr(
+ DWOContrubution->getOffset(), DWOContrubution->getLength());
} else if (!Unit.isDWOUnit()) {
const uint64_t StartOffset = Unit.getAbbreviationsOffset();