[PATCH] D37214: Another prototype fix for lld DWARF parsing of base address selection entries in range lists

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 1 13:01:17 PDT 2017


dblaikie accepted this revision.
dblaikie added a comment.
This revision is now accepted and ready to land.

Couple of minor things to address before you commit this (no need to send it for further review though - I'll catch anything else in post-commit), but otherwise looks good.



================
Comment at: lib/DebugInfo/DWARF/DWARFFormValue.cpp:296
+      Value.SectionIndex = -1ULL;
       Value.uval = Data.getRelocatedValue(Size, OffsetPtr, &Value.SectionIndex);
       break;
----------------
should getRelocatedValue handle this case (if there is no section, it coudl set the SectionIndex to -1ULL) so SectionIndex is welldefined after a call to getRelocatedValue, even when the section index is not known?


================
Comment at: test/DebugInfo/X86/dwarfdump-ranges-baseaddr.s:65-68
+ .quad .Lfunc_begin0-.Lfunc_begin0
+ .quad .Ltmp0-.Lfunc_begin0
+ .quad .Ltmp1-.Lfunc_begin0
+ .quad .Ltmp2-.Lfunc_begin0
----------------
Add a base address selection entry in this list as well (so let the first entry rely on the CU's default base address, then use a base address selection entry to switch base address (maybe switch section too to make it obvious in the CHECKs)), to test that codepath.


https://reviews.llvm.org/D37214





More information about the llvm-commits mailing list