Details
Diff Detail
Event Timeline
This needs a testcase.
include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h | ||
---|---|---|
68 | I would use a std::pair<> or a simple struct here. | |
lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp | ||
102 | A dwarf::Tag is a uint_16 — do we also need to check that the value is within range, or is this impossible because we already verified the FORM? | |
108 | return {DieOffset, DieTag}; should also work here | |
lib/DebugInfo/DWARF/DWARFVerifier.cpp | ||
550–557 | maybe continue; here and get rid of the else? not sure if this will be better :-) | |
554 | Could we be more specific in the error message? |
lib/DebugInfo/DWARF/DWARFVerifier.cpp | ||
---|---|---|
534 | I think something like this would be more readable: unsigned Offset; unsigned Tag; std::tie(Offset, Tag) = AccelTable.readAtoms(HashDataOffset); | |
550–557 | The LLVM coding style prefers early exits over nested ifs to improve readability. I'll leave this up to you. | |
test/tools/llvm-dwarfdump/X86/apple_types_verify_tag.s | ||
121 | Where's the CHECK? |
I would use a std::pair<> or a simple struct here.