[clang] Set DW_AT_language field to DW_LANG_HIP when AMD clang is used (PR #181738)

Michael Buch via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 19 23:49:51 PST 2026


================
@@ -694,7 +694,9 @@ static llvm::dwarf::SourceLanguage GetSourceLanguage(const CodeGenModule &CGM) {
 
   llvm::dwarf::SourceLanguage LangTag;
   if (LO.CPlusPlus) {
-    if (LO.ObjC)
+    if (LO.HIP)
----------------
Michael137 wrote:

Nope, HIP has been a valid language pre-DWARF6. The only thing that requires version gating is what kind of language tag we emit, and that's already handled

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


More information about the cfe-commits mailing list