diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2017-10-10 14:15:25 +0000 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2017-10-10 14:15:25 +0000 |
| commit | aa6be823a450abbcabbf4241a59bffc1d4ce3143 (patch) | |
| tree | 3409e3298c3b3f26c57229859dce09b667ed2c88 /llvm/test/DebugInfo/Generic/tu-composite.ll | |
| parent | 2a0c4f57dd33c5187ed6d85f2d5be39701fe1692 (diff) | |
| download | bcm5719-llvm-aa6be823a450abbcabbf4241a59bffc1d4ce3143.tar.gz bcm5719-llvm-aa6be823a450abbcabbf4241a59bffc1d4ce3143.zip | |
Re-land "[llvm-dwarfdump] Print type names in DW_AT_type DIEs"
This patch adds printing for DW_AT_type DIEs like it is already the case
for DW_AT_specification DIEs. This is a rather naive approach and only a
start. We should have pretty printers for different languages.
Recommit after being reverted in r315299.
Differential revision: https://reviews.llvm.org/D36993
llvm-svn: 315316
Diffstat (limited to 'llvm/test/DebugInfo/Generic/tu-composite.ll')
| -rw-r--r-- | llvm/test/DebugInfo/Generic/tu-composite.ll | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/test/DebugInfo/Generic/tu-composite.ll b/llvm/test/DebugInfo/Generic/tu-composite.ll index 45e0e5894d1..d196e0f5f05 100644 --- a/llvm/test/DebugInfo/Generic/tu-composite.ll +++ b/llvm/test/DebugInfo/Generic/tu-composite.ll @@ -32,21 +32,21 @@ ; CHECK-NEXT: DW_AT_name [DW_FORM_strp] {{.*}}= "virt<bar>") ; Make sure we correctly handle type of a template_type being a type identifier. ; CHECK: DW_TAG_template_type_parameter -; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE2]]}) +; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE2]]} ; CHECK-NEXT: DW_AT_name [DW_FORM_strp] {{.*}}= "T") ; Make sure we correctly handle derived-from of a typedef being a type identifier. ; CHECK: DW_TAG_typedef -; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE2]]}) +; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE2]]} ; CHECK: DW_AT_name [DW_FORM_strp] {{.*}}= "baz2") ; Make sure we correctly handle derived-from of a pointer type being a type identifier. ; CHECK: DW_TAG_pointer_type -; CHECK: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE]]}) +; CHECK: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE]]} ; CHECK: DW_TAG_typedef -; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE2]]}) +; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE2]]} ; CHECK: DW_AT_name [DW_FORM_strp] {{.*}}= "baz") ; Make sure we correctly handle derived-from of an array type being a type identifier. ; CHECK: DW_TAG_array_type -; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE2]]}) +; CHECK-NEXT: DW_AT_type [DW_FORM_ref4] (cu + {{.*}} => {[[TYPE2]]} ; IR generated from clang -g with the following source: ; struct C { ; virtual void foo(); |

