[llvm] [DebugInfo][NVPTX] Adding support for `inlined_at` debug directive in NVPTX backend (PR #170239)
Jeremy Morse via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 8 08:27:01 PST 2025
================
@@ -96,9 +96,12 @@ void DwarfStringPool::emit(AsmPrinter &Asm, MCSection *StrSection,
if (ShouldCreateSymbols)
Asm.OutStreamer->emitLabel(Entry->getValue().Symbol);
+ // Emit a comment with the string offset and the string itself.
+ Asm.OutStreamer->AddComment(
+ "string offset=" + Twine(Entry->getValue().Offset) + " ; " +
+ StringRef(Entry->getKeyData(), Entry->getKeyLength()));
+
// Emit the string itself with a terminating null byte.
- Asm.OutStreamer->AddComment("string offset=" +
- Twine(Entry->getValue().Offset));
----------------
jmorse wrote:
Unrelated change? Or if not, why is this needed?
https://github.com/llvm/llvm-project/pull/170239
More information about the llvm-commits
mailing list