[PATCH] D43627: [DEBUGINFO] Add flag for DWARF2 or less to use sections as references.

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 1 07:57:06 PST 2018


Eric Christopher via Phabricator via llvm-commits
<llvm-commits at lists.llvm.org> writes:

> echristo added a comment.
>
> Using sections as references is, in general, a good idea when we can so I'd rather not tie that to whether or not we emit certain sections. If you don't mind reverting that aspect of the change I'd appreciate it and we can get that in via some other preference or a strict requirement via the asm printer as we're planning on doing for the rest of the nvptx section emission.

Using relocations to sections is a good thing, but using a local label
(.Lfoo) causes the assembler to convert the references to section
references and is more readable.

It seems some assembler is missing a pretty basic feature.

Cheers,
Rafael


More information about the llvm-commits mailing list