[PATCH] D70524: Support DebugInfo generation for auto return type for C++ functions.
Awanish Pandey via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 5 02:57:41 PST 2019
awpandey marked an inline comment as done.
awpandey added a comment.
> It looks to me like there are a few tests for unspecified_type already:
>
> $ grep -r unspecified_type llvm/test
> llvm/test/Assembler/debug-info.ll:; CHECK-NEXT: !7 = !DIBasicType(tag: DW_TAG_unspecified_type, name: "decltype(nullptr)")
> llvm/test/Assembler/debug-info.ll:!8 = !DIBasicType(tag: DW_TAG_unspecified_type, name: "decltype(nullptr)")
...
@dblaikie, are you suggesting me to modify some of these existing test cases to include `auto return` functionality as well.
================
Comment at: clang/test/CodeGenCXX/debug-info-auto-return.cpp:9
+
+// CHECK: ![[t:[0-9]+]] = !DISubroutineType(types: ![[t1:[0-9]+]])
+// CHECK-NEXT: ![[t1:[0-9]+]] = !{![[t2:[0-9]+]], {{.*}}
----------------
@aprantl I have tried to use variable as shown by you for showing links between the associated nodes.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70524/new/
https://reviews.llvm.org/D70524
More information about the cfe-commits
mailing list