forked from OSchip/llvm-project
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:
parent
8a99ecd01c
commit
a7484c9180
|
@ -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 {
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
// RUN: %clang -emit-llvm -S -g %s -o - | FileCheck %s
|
||||
|
||||
// CHECK: !DICompileUnit(language: DW_LANG_GOOGLE_RenderScript{{.*}})
|
Loading…
Reference in New Issue