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

Adrian Prantl via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 9 09:09:35 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: "/")
----------------
adrian-prantl wrote:

Would it be better to use DW_LANG_C++17 to test the upgrade to name+version?

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


More information about the llvm-commits mailing list