[llvm] r316428 - [llvm-dwarfdump] - Cleanup of gnu_call_site.s. NFC.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 24 04:44:19 PDT 2017


Author: grimar
Date: Tue Oct 24 04:44:19 2017
New Revision: 316428

URL: http://llvm.org/viewvc/llvm-project?rev=316428&view=rev
Log:
[llvm-dwarfdump] - Cleanup of gnu_call_site.s. NFC.

This change fixes values of test so that it passes 
-verify without errors and also adds comments.
Test was introduced in D39119 and intention was to check
that tool is able to dump few
DW_*GNU_call_site* tags and attributes, so that
change is NFC cleanup.

Modified:
    llvm/trunk/test/tools/llvm-dwarfdump/X86/gnu_call_site.s

Modified: llvm/trunk/test/tools/llvm-dwarfdump/X86/gnu_call_site.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-dwarfdump/X86/gnu_call_site.s?rev=316428&r1=316427&r2=316428&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-dwarfdump/X86/gnu_call_site.s (original)
+++ llvm/trunk/test/tools/llvm-dwarfdump/X86/gnu_call_site.s Tue Oct 24 04:44:19 2017
@@ -4,7 +4,7 @@
 # CHECK:      DW_TAG_subprogram
 # CHECK-NEXT:   DW_AT_external  (true)
 # CHECK-NEXT:   DW_AT_name      ("fn4")
-# CHECK-NEXT:   DW_AT_linkage_name      ()
+# CHECK-NEXT:   DW_AT_linkage_name      ("test")
 # CHECK-NEXT:   DW_AT_low_pc    (0x0000000000000000)
 # CHECK-NEXT:   DW_AT_high_pc   (0x00000000)
 # CHECK-NEXT:   DW_AT_frame_base        (DW_OP_call_frame_cfa)
@@ -12,7 +12,7 @@
 
 # CHECK:      DW_TAG_GNU_call_site
 # CHECK-NEXT:   DW_AT_low_pc  (0x0000000000000000)
-# CHECK-NEXT:   DW_AT_abstract_origin (cu + 0x0001)
+# CHECK-NEXT:   DW_AT_abstract_origin (cu + 0x0021 "test")
 
 # CHECK:      DW_TAG_GNU_call_site_parameter
 # CHECK-NEXT:   DW_AT_location      (DW_OP_reg0 EAX)
@@ -31,7 +31,6 @@
   .long  0
   .long  0
   .long  0
-  .long  0
 
   .uleb128 0xe # DW_TAG_subprogram [14]
   .string  "fn4"
@@ -43,7 +42,7 @@
 
   .uleb128 0x12 # DW_TAG_GNU_call_site [18]
   .long  0x0
-  .long  0x1
+  .long  0x21
 
   .uleb128 0x13 # DW_TAG_GNU_call_site_parameter [19]
   .uleb128 0x1
@@ -55,64 +54,68 @@
   .byte  0
   .byte  0
 
+  .byte  0
+  .byte  0
+
 .section .debug_abbrev,"", at progbits
   .uleb128 0x1
-  .uleb128 0x11
-  .byte  0x1 # [1]
-  .uleb128 0x25
+  .uleb128 0x11   # DW_TAG_compile_unit, DW_CHILDREN_yes
+  .byte  0x1
+  .uleb128 0x25   # DW_AT_producer, DW_FORM_strp
   .uleb128 0xe
-  .uleb128 0x13
+  .uleb128 0x13   # DW_AT_language, DW_FORM_data1
   .uleb128 0xb
-  .uleb128 0x3
+  .uleb128 0x3    # DW_AT_name, DW_FORM_strp
   .uleb128 0xe
-  .uleb128 0x1b
+  .uleb128 0x1b   # DW_AT_comp_dir, DW_FORM_strp
   .uleb128 0xe
-  .uleb128 0x11
+  .uleb128 0x11   # DW_AT_low_pc, DW_FORM_addr
   .uleb128 0x1
-  .uleb128 0x12
+  .uleb128 0x12   # DW_AT_high_pc, DW_FORM_data4
   .uleb128 0x6
-  .uleb128 0x10
-  .uleb128 0x17
   .byte  0
   .byte  0
 
-  .uleb128 0xe # [14]
-  .uleb128 0x2e
+  .uleb128 0xe    # [14]
+  .uleb128 0x2e   # DW_TAG_subprogram, DW_CHILDREN_yes
   .byte  0x1
-  .uleb128 0x3f
+  .uleb128 0x3f   # DW_AT_external, DW_FORM_flag_present
   .uleb128 0x19
-  .uleb128 0x3
+  .uleb128 0x3    # DW_AT_name, DW_FORM_string
   .uleb128 0x8
-  .uleb128 0x6e
+  .uleb128 0x6e   # DW_AT_linkage_name, DW_FORM_strp
   .uleb128 0xe
-  .uleb128 0x11
+  .uleb128 0x11   # DW_AT_low_pc, DW_FORM_addr
   .uleb128 0x1
-  .uleb128 0x12
+  .uleb128 0x12   # DW_AT_high_pc, DW_FORM_data4
   .uleb128 0x6
-  .uleb128 0x40
+  .uleb128 0x40   # DW_AT_frame_base, DW_FORM_exprloc
   .uleb128 0x18
-  .uleb128 0x2117
+  .uleb128 0x2117 # DW_AT_GNU_all_call_sites, DW_FORM_flag_present
   .uleb128 0x19
   .byte  0
   .byte  0
 
-  .uleb128 0x12 # [18]
-  .uleb128 0x4109
+  .uleb128 0x12   # [18]
+  .uleb128 0x4109 # DW_TAG_GNU_call_site, DW_CHILDREN_yes
   .byte  0x1
-  .uleb128 0x11
+  .uleb128 0x11   # DW_AT_low_pc, DW_FORM_addr
   .uleb128 0x1
-  .uleb128 0x31
+  .uleb128 0x31   # DW_AT_abstract_origin, DW_FORM_ref4
   .uleb128 0x13
   .byte  0
   .byte  0
 
-  .uleb128 0x13 # [19]
-  .uleb128 0x410a
+  .uleb128 0x13   # [19]
+  .uleb128 0x410a # DW_TAG_GNU_call_site_parameter, DW_CHILDREN_no
   .byte  0
-  .uleb128 0x2
+  .uleb128 0x2    # DW_AT_location, DW_FORM_exprloc
   .uleb128 0x18
-  .uleb128 0x2111
+  .uleb128 0x2111 # DW_AT_GNU_call_site_value, DW_FORM_exprloc
   .uleb128 0x18
   .byte  0
   .byte  0
   .byte  0
+
+.section .debug_str,"MS", at progbits,1
+.string "test"




More information about the llvm-commits mailing list