[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:53:29 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:
I was actually going to add the version test separately since I haven't addressed the `DW_AT_language_version` at all yet.
https://github.com/llvm/llvm-project/pull/162445
More information about the llvm-commits
mailing list