[DebugInfo] convert btf_tag attrs to DI annotations for DIGlobalVariable
authorYonghong Song <yhs@fb.com>
Thu, 26 Aug 2021 16:44:14 +0000 (09:44 -0700)
committerYonghong Song <yhs@fb.com>
Thu, 26 Aug 2021 17:36:33 +0000 (10:36 -0700)
commitd2d7a90ceded94251905b7adcd5eb2ac5191896f
tree102c5f5179188feaf250493907ccc7e62e154eaf
parentc62ef0255d904fdd99173493e8e064a2dde598e8
[DebugInfo] convert btf_tag attrs to DI annotations for DIGlobalVariable

Generate btf_tag annotations for DIGlobalVariable. The annotations
are represented as an DINodeArray in DebugInfo.

Differential Revision: https://reviews.llvm.org/D106619
clang/lib/CodeGen/CGDebugInfo.cpp
clang/test/CodeGen/attr-btf_tag-diglobalvariable.c [new file with mode: 0644]