[PATCH] D94670: [DebugInfo][NFC] add a new DIE type to represent label + offset

ChenZheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 15 05:37:38 PST 2021


shchenz added a comment.

> That is quite interesting, why they designed the feature to work that way. Is it recommended to reference debug sections through the label minus the length field size (4 or 12) or they provide some means to simplify the calculation?

This is a good question. But unfortunately I can not give you the answer. sorry about this. All I know is this design exists for a long time and we must follow this design, otherwise the assembler will emit error like invalid dwarf section :(

> How an assembler output of their own compiler looks like?

On aix, the default c/c++ compiler is XLC. With that compiler, there is no assembly mode. XLC only has object mode, so it does not involve assembler to generate a object file.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94670/new/

https://reviews.llvm.org/D94670



More information about the llvm-commits mailing list