[llvm] [llvm][DebugInfo] Add 'sourceLanguageName' field support to DICompileUnit (PR #162445)

Michael Buch via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 10 01:54:55 PDT 2025


================
@@ -0,0 +1,15 @@
+; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
+
+; CHECK: sourceLanguageName: DW_LNAME_ObjC_plus_plus
+
+source_filename = "cu.cpp"
+target triple = "arm64-apple-macosx"
+
+!llvm.dbg.cu = !{!0}
+!llvm.module.flags = !{!3, !4}
+
+!0 = distinct !DICompileUnit(sourceLanguageName: DW_LNAME_ObjC_plus_plus, file: !1, producer: "handwritten", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, globals: !2, splitDebugInlining: false, nameTableKind: Apple, sysroot: "/")
----------------
Michael137 wrote:

The auto-upgrade path is already tested because any `DW_LNAME_` will construct a "versioned" `DISourceLanguageName`

https://github.com/llvm/llvm-project/pull/162445


More information about the llvm-commits mailing list