summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2018-03-07 16:28:53 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2018-03-07 16:28:53 +0000
commitbf8596f9cf5e22292e4544f9d40e6cd12a3b4beb (patch)
tree517f9e0faaf056370dfa9e1a1175c4233bc14f90 /llvm/test/DebugInfo
parente12a48bcc089b9942fa405076ccabac73fae3e86 (diff)
downloadbcm5719-llvm-bf8596f9cf5e22292e4544f9d40e6cd12a3b4beb.tar.gz
bcm5719-llvm-bf8596f9cf5e22292e4544f9d40e6cd12a3b4beb.zip
[dwarfdump] Only print CU relative offset in verbose mode
Instead of only printing the CU-relative offset in non-verbose mode, it makes more sense to only printed the resolved address. In verbose mode we still print both. Differential revision: https://reviews.llvm.org/D44148 rdar://33525475 llvm-svn: 326903
Diffstat (limited to 'llvm/test/DebugInfo')
-rw-r--r--llvm/test/DebugInfo/X86/vla-dependencies.ll8
-rw-r--r--llvm/test/DebugInfo/X86/vla-global.ll6
-rw-r--r--llvm/test/DebugInfo/X86/vla-multi.ll40
3 files changed, 27 insertions, 27 deletions
diff --git a/llvm/test/DebugInfo/X86/vla-dependencies.ll b/llvm/test/DebugInfo/X86/vla-dependencies.ll
index 12e2798edc5..52fcaf6959d 100644
--- a/llvm/test/DebugInfo/X86/vla-dependencies.ll
+++ b/llvm/test/DebugInfo/X86/vla-dependencies.ll
@@ -8,20 +8,20 @@
; CHECK-NOT: DW_TAG
; CHECK: DW_TAG_subrange_type
; CHECK-NEXT: DW_AT_type {{.*}}"sizetype"
-; CHECK-NEXT: DW_AT_count (cu + 0x0[[VLAEXPR]])
+; CHECK-NEXT: DW_AT_count (0x00000[[VLAEXPR]]
;
;
; Generated from (and then modified):
;
; #define DECLARE_ARRAY(type, var_name, size) type var_name[size]
-;
+;
; void h(void);
; void k(void *);
-;
+;
; void g() {
; h();
; }
-;
+;
; void h() {
; int count = 2;
; DECLARE_ARRAY(int, array, count);
diff --git a/llvm/test/DebugInfo/X86/vla-global.ll b/llvm/test/DebugInfo/X86/vla-global.ll
index b333dc6c9d2..08ea4f0a932 100644
--- a/llvm/test/DebugInfo/X86/vla-global.ll
+++ b/llvm/test/DebugInfo/X86/vla-global.ll
@@ -2,11 +2,11 @@
; CHECK: 0x00000[[G:.*]]: DW_TAG_variable
; CHECK-NEXT: DW_AT_name ("g")
; CHECK: DW_TAG_array_type
-; CHECK-NEXT: DW_AT_type (cu + {{.*}} "int")
+; CHECK-NEXT: DW_AT_type ({{.*}} "int")
; CHECK-NOT: DW_TAG
; CHECK: DW_TAG_subrange_type
-; CHECK-NEXT: DW_AT_type (cu + {{.*}} "sizetype")
-; CHECK-NEXT: DW_AT_count (cu + 0x0[[G]])
+; CHECK-NEXT: DW_AT_type ({{.*}} "sizetype")
+; CHECK-NEXT: DW_AT_count (0x00000[[G]])
; Test that a VLA referring to a global variable is handled correctly.
; Clang doesn't generate this, but the verifier allows it.
source_filename = "/tmp/test.c"
diff --git a/llvm/test/DebugInfo/X86/vla-multi.ll b/llvm/test/DebugInfo/X86/vla-multi.ll
index 8688da06686..a61938d7521 100644
--- a/llvm/test/DebugInfo/X86/vla-multi.ll
+++ b/llvm/test/DebugInfo/X86/vla-multi.ll
@@ -8,41 +8,41 @@
;}
;
; CHECK: DW_TAG_array_type
-; CHECK-NEXT: DW_AT_type (cu + 0x00f8 "int")
-; CHECK-NOT: TAG
+; CHECK-NEXT: DW_AT_type (0x000000f8 "int")
+; CHECK-NOT: TAG
; CHECK: DW_TAG_subrange_type
-; CHECK-NEXT: DW_AT_type (cu + {{.*}}"sizetype")
-; CHECK-NEXT: DW_AT_count (cu + {{.*}})
+; CHECK-NEXT: DW_AT_type (0x{{.*}}"sizetype")
+; CHECK-NEXT: DW_AT_count (0x{{.*}})
; CHECK-NOT: TAG
; CHECK: DW_TAG_subrange_type
-; CHECK-NEXT: DW_AT_type (cu + {{.*}} "sizetype")
-; CHECK-NEXT: DW_AT_count (cu + {{.*}})
+; CHECK-NEXT: DW_AT_type (0x{{.*}} "sizetype")
+; CHECK-NEXT: DW_AT_count (0x{{.*}})
; CHECK-NOT: TAG
; CHECK: DW_TAG_subrange_type
-; CHECK-NEXT: DW_AT_type (cu + {{.*}} "sizetype")
-; CHECK-NEXT: DW_AT_count (cu + {{.*}})
+; CHECK-NEXT: DW_AT_type (0x{{.*}} "sizetype")
+; CHECK-NEXT: DW_AT_count (0x{{.*}})
; CHECK-NOT: TAG
; CHECK: DW_TAG_subrange_type
-; CHECK-NEXT: DW_AT_type (cu + {{.*}} "sizetype")
-; CHECK-NEXT: DW_AT_count (cu + {{.*}})
+; CHECK-NEXT: DW_AT_type (0x{{.*}} "sizetype")
+; CHECK-NEXT: DW_AT_count (0x{{.*}})
; CHECK: DW_TAG_array_type
-; CHECK-NEXT: DW_AT_type (cu + 0x00f8 "int")
-; CHECK-NOT: TAG
+; CHECK-NEXT: DW_AT_type (0x000000f8 "int")
+; CHECK-NOT: TAG
; CHECK: DW_TAG_subrange_type
-; CHECK-NEXT: DW_AT_type (cu + {{.*}}"sizetype")
-; CHECK-NEXT: DW_AT_count (cu + {{.*}})
+; CHECK-NEXT: DW_AT_type (0x{{.*}}"sizetype")
+; CHECK-NEXT: DW_AT_count (0x{{.*}})
; CHECK-NOT: TAG
; CHECK: DW_TAG_subrange_type
-; CHECK-NEXT: DW_AT_type (cu + {{.*}} "sizetype")
-; CHECK-NEXT: DW_AT_count (cu + {{.*}})
+; CHECK-NEXT: DW_AT_type (0x{{.*}} "sizetype")
+; CHECK-NEXT: DW_AT_count (0x{{.*}})
; CHECK-NOT: TAG
; CHECK: DW_TAG_subrange_type
-; CHECK-NEXT: DW_AT_type (cu + {{.*}} "sizetype")
-; CHECK-NEXT: DW_AT_count (cu + {{.*}})
+; CHECK-NEXT: DW_AT_type (0x{{.*}} "sizetype")
+; CHECK-NEXT: DW_AT_count (0x{{.*}})
; CHECK-NOT: TAG
; CHECK: DW_TAG_subrange_type
-; CHECK-NEXT: DW_AT_type (cu + {{.*}} "sizetype")
-; CHECK-NEXT: DW_AT_count (cu + {{.*}})
+; CHECK-NEXT: DW_AT_type (0x{{.*}} "sizetype")
+; CHECK-NEXT: DW_AT_count (0x{{.*}})
source_filename = "/tmp/test.c"
OpenPOWER on IntegriCloud