[PATCH] D150713: [llvm-debuginfo-analyzer] Support both Reference and Type attrs in single DIE
Carlos Alberto Enciso via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 18 02:02:21 PDT 2023
CarlosAlbertoEnciso added a comment.
Compiling the test case with GCC and Clang, your patch produces:
llvm-debuginfo-analyzer --print=symbols --attribute=reference clang.o gcc.o
Logical View:
{File} 'clang.o'
{CompileUnit} 'test.cpp'
{Variable} 'Arr' -> 'const int [3]'
{Reference} @2
1 {Struct} 'S'
2 {Member} extern public 'Arr' -> 'const int [1]'
Logical View:
{File} 'gcc.o'
{CompileUnit} 'test.cpp'
1 {Struct} 'S'
2 {Variable} extern 'Arr' -> 'const int [1]'
4 {Variable} 'Arr' -> 'const const int [3]'
{Reference} @2
Looks good.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150713/new/
https://reviews.llvm.org/D150713
More information about the llvm-commits
mailing list