[PATCH] D123534: [dwarf] Emit a DIGlobalVariable for constant strings.

Artem Belevich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 27 16:03:59 PST 2023


tra added a comment.

This patch appears to break CUDA compilation: https://github.com/llvm/llvm-project/issues/58491

We apparently emit the symbol with a character (`.`) that can't be used on the target. Normally such characters get renamed/escaped, as you can see in the generated function name itself.
Search for `.b64 __func__._Z10foo_kernelv` in the dwarf output.
https://godbolt.org/z/8h4rGn1Ka


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D123534



More information about the cfe-commits mailing list