In DWARFLinker.h, some comments prefix the debug section names
with '.' while others do not.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I think it would be better to not add any prefixes to section names. On Darwin, section names have "__" prefix. So using "." looks a bit incompatible. It seems, it is better always use section names without prefixes.
But this file implements DWARF support and the DWARF spec specified section names are prefixed with '.'.
In any case, I think the comments can be consistent in all the places on whether or not prefix debug section names with '.'.
Currently section names prefixed with '.' in some places and not prefixed with '.' in the rest.
Given the DWARF spec talks about the names in the ELF form (with the leading dot) and various other parts of LLVM do this - including messages in llvm-dwarfdump --verify, for instance - I think it's probably not bad to standardize on the dot forms when referring to these names. (the MachO forms also get abbreviated in some places, which would get a bit more weird).
Right. Comments need to be consistent in all places. Avoiding prefixes would make names looking good for all platforms. But if the idea is to be conformant with Dwarf spec and others prefer dot form I am OK with it also.
If there are no concerns on standardizing the DWARF section names on the dot forms, can somebody approve these changes?