[llvm] [DWARF] Teach getAttributeValueAsReferencedDie to resolve DW_FORM_ref… (PR #101197)
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 31 08:01:04 PDT 2024
================
@@ -1,403 +1,269 @@
# RUN: llvm-mc < %s -filetype obj -triple x86_64 -o - \
# RUN: | llvm-dwarfdump - | FileCheck %s
-# Significantly modified assembly generated from this source:
+# Hand-written assembly roughly equivalent to this source code:
#
# struct t1 { };
# struct t2 { };
# template<typename ...T>
-# void f1() { }
-# int main() {
-# f1<t1, t2>();
-# }
+# struct S {};
+# S<t1, t2, t1> s;
#
-# $ clang++-tot test.cpp -g -S -fdebug-types-section -gdwarf-5 -o test.5.s -fstandalone-debug
-#
-# I inserted a DWARFv4 copy of the first type unit ("t1") to replace the
-# DWARFv5 type unit - to test both v4 and v5 type unit support. This test
-# doesn't really need templates - two local variables would've sufficed
-# (anything that references the type units) but I was working on something else
-# and this seemed minimal enough.
+# To various scenarios, the test uses a mixture of DWARF v4 and v5 type units,
----------------
dwblaikie wrote:
missing word "test" perhaps? ("to test various scenarios" (or "to cover various scenarios")
https://github.com/llvm/llvm-project/pull/101197
More information about the llvm-commits
mailing list