[PATCH] D103549: [POC] Put annotation strings into debuginfo.
David Blaikie via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 2 12:21:08 PDT 2021
dblaikie added a comment.
Generally arbitrary strings are best avoided where possible owing to lack of structure, type safety, semantics, etc. But they might be suitable here since they're opaque to everything from the frontend to the backend.
As for supporting it in DWARF, probably with a custom attribute (`DW_AT_BTF_annotation`? (or "LLVM" instead of "BTF" perhaps, I'm not sure)) with a standard form (DW_FORM_strp/strxN/etc - the usual way we emit strings).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103549/new/
https://reviews.llvm.org/D103549
More information about the cfe-commits
mailing list