[PATCH] D104118: [OpenCL] Use DW_LANG_OpenCL language tag for OpenCL C

Stuart Brady via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 11 07:32:32 PDT 2021


stuart added a comment.

Note: there is currently no DWARF language code defined for //C++ for OpenCL//, so we must use DW_LANG_C_plus_plus* if we wish to be able to determine whether output has been generated from //C++ for OpenCL// source or from //OpenCL C// source. I have raised DWARF issue 210514.1 <http://dwarfstd.org/ShowIssue.php?issue=210514.1> to add a dedicated //C++ for OpenCL// code in the next version of DWARF, but for now I believe that it is best to use DW_LANG_OpenCL for //OpenCL C// only, and not for //C++ for OpenCL//.

I could perhaps add a note regarding this to the commit message but am concerned about overcomplicating the message.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D104118/new/

https://reviews.llvm.org/D104118



More information about the cfe-commits mailing list