Emit the DWARF tag for the RenderScript language

Summary:
If the RenderScript LangOpt is set, either via '-x renderscript' or the '.rs'
file extension, set the DWARF language tag to be that of RenderScript.

Reviewers: rsmith

Subscribers: cfe-commits, srhines

Differential Revision: http://reviews.llvm.org/D21451

llvm-svn: 273321
This commit is contained in:
Pirama Arumuga Nainar 2016-06-21 21:35:11 +00:00
parent 8a99ecd01c
commit a7484c9180
2 changed files with 5 additions and 0 deletions

View File

@ -377,6 +377,8 @@ void CGDebugInfo::CreateCompileUnit() {
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 {

View File

@ -0,0 +1,3 @@
// RUN: %clang -emit-llvm -S -g %s -o - | FileCheck %s
// CHECK: !DICompileUnit(language: DW_LANG_GOOGLE_RenderScript{{.*}})