aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorStuart Brady <stuart.brady@arm.com>2021-06-23 14:21:15 +0100
committerStuart Brady <stuart.brady@arm.com>2021-06-25 11:48:42 +0100
commite47027d091deb4a0774eab911411a27092a60916 (patch)
treeebcfef9f69b1abc629e2c77bcd5839918a88bd59 /flang/lib/Frontend/CompilerInvocation.cpp
parent968980ef08955ee03f406e8078089b1f2eb571e3 (diff)
downloadllvm-e47027d091deb4a0774eab911411a27092a60916.zip
llvm-e47027d091deb4a0774eab911411a27092a60916.tar.gz
llvm-e47027d091deb4a0774eab911411a27092a60916.tar.bz2
[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
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions