Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
This needs a testcase.
include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h | ||
---|---|---|
68 ↗ | (On Diff #108546) | I would use a std::pair<> or a simple struct here. |
lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp | ||
102 ↗ | (On Diff #108546) | 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 ↗ | (On Diff #108546) | return {DieOffset, DieTag}; should also work here |
lib/DebugInfo/DWARF/DWARFVerifier.cpp | ||
550 ↗ | (On Diff #108546) | maybe continue; here and get rid of the else? not sure if this will be better :-) |
554 ↗ | (On Diff #108546) | Could we be more specific in the error message? |
lib/DebugInfo/DWARF/DWARFVerifier.cpp | ||
---|---|---|
534 ↗ | (On Diff #108950) | I think something like this would be more readable: unsigned Offset; unsigned Tag; std::tie(Offset, Tag) = AccelTable.readAtoms(HashDataOffset); |
550 ↗ | (On Diff #108546) | 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 ↗ | (On Diff #108950) | Where's the CHECK? |
lib/DebugInfo/DWARF/DWARFVerifier.cpp | ||
---|---|---|
534 ↗ | (On Diff #108950) | I followed the advice, thanks! |
test/tools/llvm-dwarfdump/X86/apple_types_verify_tag.s | ||
121 ↗ | (On Diff #108950) | beginning of test:
|