[PATCH] D21451: Emit the DWARF tag for the RenderScript language

Pirama Arumuga Nainar via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 21 14:42:03 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL273321: Emit the DWARF tag for the RenderScript language (authored by pirama).

Changed prior to commit:
  http://reviews.llvm.org/D21451?vs=61038&id=61452#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D21451

Files:
  cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
  cfe/trunk/test/CodeGen/debug-info-renderscript-tag.rs

Index: cfe/trunk/test/CodeGen/debug-info-renderscript-tag.rs
===================================================================
--- cfe/trunk/test/CodeGen/debug-info-renderscript-tag.rs
+++ cfe/trunk/test/CodeGen/debug-info-renderscript-tag.rs
@@ -0,0 +1,3 @@
+// RUN: %clang -emit-llvm -S -g %s -o - | FileCheck %s
+
+// CHECK: !DICompileUnit(language: DW_LANG_GOOGLE_RenderScript{{.*}})
Index: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
===================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
@@ -377,6 +377,8 @@
       LangTag = llvm::dwarf::DW_LANG_C_plus_plus;
   } else if (LO.ObjC1) {
     LangTag = llvm::dwarf::DW_LANG_ObjC;
+  } else if (LO.RenderScript) {
+    LangTag = llvm::dwarf::DW_LANG_GOOGLE_RenderScript;
   } else if (LO.C99) {
     LangTag = llvm::dwarf::DW_LANG_C99;
   } else {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21451.61452.patch
Type: text/x-patch
Size: 893 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160621/2bb76400/attachment.bin>


More information about the cfe-commits mailing list