diff options
author | Yonghong Song <yhs@fb.com> | 2021-07-19 09:54:33 -0700 |
---|---|---|
committer | Yonghong Song <yhs@fb.com> | 2021-08-31 19:22:17 -0700 |
commit | 89424a829f3c194177411c922c7050946891fff4 (patch) | |
tree | f72d6312dae2eb2c2fccd278030817eb34ca047a /llvm/lib/FileCheck/FileCheck.cpp | |
parent | 1688b4cf8ec3f87efdd0f2d0227588f549558dea (diff) | |
download | llvm-89424a829f3c194177411c922c7050946891fff4.zip llvm-89424a829f3c194177411c922c7050946891fff4.tar.gz llvm-89424a829f3c194177411c922c7050946891fff4.tar.bz2 |
[DWARF] Support new TAG DW_TAG_LLVM_annotation
A new LLVM specific TAG DW_TAG_LLVM_annotation is added.
The name is suggested by Paul Robinson ([1]).
Currently, this tag is used to output __attribute__((btf_tag("string")))
annotations in dwarf. The following is an example for a global
variable with two btf_tag attributes:
0x0000002a: DW_TAG_variable
DW_AT_name ("g1")
DW_AT_type (0x00000052 "int")
DW_AT_external (true)
DW_AT_decl_file ("/tmp/home/yhs/work/tests/llvm/btf_tag/t.c")
DW_AT_decl_line (8)
DW_AT_location (DW_OP_addr 0x0)
0x0000003f: DW_TAG_LLVM_annotation
DW_AT_name ("btf_tag")
DW_AT_const_value ("tag1")
0x00000048: DW_TAG_LLVM_annotation
DW_AT_name ("btf_tag")
DW_AT_const_value ("tag2")
0x00000051: NULL
In the future, DW_TAG_LLVM_annotation may encode other type
of non-string const value.
[1] https://lists.llvm.org/pipermail/llvm-dev/2021-June/151250.html
Differential Revision: https://reviews.llvm.org/D106621
Diffstat (limited to 'llvm/lib/FileCheck/FileCheck.cpp')
0 files changed, 0 insertions, 0 deletions