[PATCH] D34765: [DWARF] [NFC] Move a couple of member functions to DWARFUnit (baseclass) from DWARFCompileUnit (derived class)

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 28 19:28:19 PDT 2017


dblaikie added a comment.

In https://reviews.llvm.org/D34765#794516, @wolfgangp wrote:

> In https://reviews.llvm.org/D34765#794069, @dblaikie wrote:
>
> > This is for DW_AT_str_offsets_base in a type unit?
>
>
> Yes.
>
> > Is the delta version needed? (is that modifying the existing use in split DWARF to now require a tag for str_offsets_base when none was needed before) Or only the addSectionLabel?
>
> The delta version avoids generating relocations, which we can't have for split DWARF, so for version >=5 the plan is to generate the str_offsets_base tag using addSectionLabel() for when we can use relocations and addSectionDelta() for when we can't (such as split DWARF, or Mach-O).


Right, sorry I wasn't very clear - what I was asking is: In DWARF5 do .dwo CUs have a str_offsets_base? They didn't in the pre-standard Fission that's implemented in LLVM at the moment - because the value was effectively zero always.


https://reviews.llvm.org/D34765





More information about the llvm-commits mailing list