This is an archive of the discontinued LLVM Phabricator instance.

[DWARF] Fix DWARFDebugAranges to support 64-bit CU offsets.
ClosedPublic

Authored by ikudrin on Dec 23 2019, 4:21 AM.

Details

Summary

DWARFContext, the only user of this class, already can handle such offsets.

Diff Detail

Event Timeline

ikudrin created this revision.Dec 23 2019, 4:21 AM
grimar added inline comments.Dec 23 2019, 4:27 AM
llvm/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp
121

-1Ull ?

ikudrin updated this revision to Diff 235138.Dec 23 2019, 6:22 AM
aprantl added inline comments.Jan 13 2020, 9:37 AM
llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAranges.h
36

-1ULL? But really, these should be optionals, right?

56–57

Either:

/// Start of address range.
uint64_t LowPC;

or

uint64_t LowPC; ///< Start of address range.
ikudrin updated this revision to Diff 237903.Jan 14 2020, 2:50 AM

Another 1U is changed to 1ULL. Thanks, @aprantl!

ikudrin marked 3 inline comments as done.Jan 14 2020, 2:57 AM
ikudrin added inline comments.
llvm/include/llvm/DebugInfo/DWARF/DWARFDebugAranges.h
36

Thanks for catching this!
Apparently, these default values are never used because the only call in DWARFDebugAranges::construct() provides all three arguments. But removing the default values is also seems to be out of the scope of the patch.

56–57

Fixing the style of the existing comments is out of the scope of this patch, no?

aprantl accepted this revision.Jan 14 2020, 11:55 AM

But removing the default values is also seems to be out of the scope of the patch.

Okay, but could you please prepare a follow-up patch that does this?

This revision is now accepted and ready to land.Jan 14 2020, 11:55 AM
This revision was automatically updated to reflect the committed changes.

But removing the default values is also seems to be out of the scope of the patch.

Okay, but could you please prepare a follow-up patch that does this?

Thank you for the review! D72757 is created to remove the default values.