[all-commits] [llvm/llvm-project] e47027: [OpenCL] Use DW_LANG_OpenCL language tag for OpenCL C
Stuart Brady via All-commits
all-commits at lists.llvm.org
Fri Jun 25 03:51:24 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e47027d091deb4a0774eab911411a27092a60916
https://github.com/llvm/llvm-project/commit/e47027d091deb4a0774eab911411a27092a60916
Author: Stuart Brady <stuart.brady at arm.com>
Date: 2021-06-25 (Fri, 25 Jun 2021)
Changed paths:
M clang/lib/CodeGen/CGDebugInfo.cpp
A clang/test/CodeGenOpenCL/debug-info-programming-language.cl
Log Message:
-----------
[OpenCL] Use DW_LANG_OpenCL language tag for OpenCL C
Note regarding C++ for OpenCL:
When compiling C++ for OpenCL, DW_LANG_C_plus_plus* is emitted.
There is no DWARF language code defined for C++ for OpenCL as of yet,
but DWARF issue 210514.1 has been raised to request one.
In the mean time, continuing to emit DW_LANG_C_plus_plus* for C++ for
OpenCL allows the potential to distinguish between C++ for OpenCL and
OpenCL C in !DICompileUnit nodes, whereas using DW_LANG_OpenCL for
C++ for OpenCL would prevent this.
This change therefore leaves C++ for OpenCL as-is.
Reviewed By: shchenz, Anastasia
Differential Revision: https://reviews.llvm.org/D104118
More information about the All-commits
mailing list