DWARFUnitHeader::getLength() returns uint64_t, so DWARFUnit::getLength() should do the same.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Is DWARFCompileUnit::dump() really the only consumer of this API? I would have thought maybe somewhere in dsymutil would be using it.
I expect it's impractical to test this sort of thing so LGTM.
Comment Actions
Thanks! All other places I found already use the length as uint64_t. I noticed only one suspicious place in lld which I investigate deeper a bit later.
Comment Actions
For the record, there are only a few places where DWARFUnit::getLength() is used:
- DWARFCompileUnit::dump() -- fixed
- DWARFTypeUnit::dump() -- fixed
- dumpDebugInfo() in tools/obj2yaml/dwarf2yaml.cpp -- already accepts uint64_t; looks like already supports DWARF64 but worth reviewing.
- readCuList() in lld/ELF/SyntheticSections.cpp -- already accepts uint64_t; probably supports only DWARF32 for now.