[llvm] 72edb79 - [NFC][DwarfDebug] Add test for variables with a single location which

via llvm-commits llvm-commits at lists.llvm.org
Mon May 11 01:55:43 PDT 2020


Author: OCHyams
Date: 2020-05-11T09:43:30+01:00
New Revision: 72edb7986a8059cda12b808aa68828af88a0a1eb

URL: https://github.com/llvm/llvm-project/commit/72edb7986a8059cda12b808aa68828af88a0a1eb
DIFF: https://github.com/llvm/llvm-project/commit/72edb7986a8059cda12b808aa68828af88a0a1eb.diff

LOG: [NFC][DwarfDebug] Add test for variables with a single location which

don't span their entire scope.

The previous commit (6d1c40c171e) is an older version of the test.

Reviewed By: aprantl, vsk

Differential Revision: https://reviews.llvm.org/D79573

Added: 
    

Modified: 
    llvm/test/DebugInfo/X86/location-range.mir

Removed: 
    


################################################################################
diff  --git a/llvm/test/DebugInfo/X86/location-range.mir b/llvm/test/DebugInfo/X86/location-range.mir
index 12492ce83282..8617dfcc7236 100644
--- a/llvm/test/DebugInfo/X86/location-range.mir
+++ b/llvm/test/DebugInfo/X86/location-range.mir
@@ -1,5 +1,5 @@
 # RUN: llc -start-after=livedebugvalues --filetype=obj %s -o - \
-# RUN:     | llvm-dwarfdump - | FileCheck %s
+# RUN:     | llvm-dwarfdump -v --name local* --regex - | FileCheck %s
 #
 # Generated with opt -sroa, llc -stop-after=livedebugvalues, with some metadata
 # removed by hand:
@@ -28,19 +28,15 @@
 # Check that the local variables each have a location range which reflects the
 # fact that they're both unavailable at the start of the functions.
 #
-# CHECK:      DW_TAG_subprogram
-# CHECK:        DW_AT_name       ("funone")
-# CHECK:        DW_TAG_variable
-# CHECK:          DW_AT_location
-# CHECK-NEXT:         [0x{{[0-9a-z]+}}, 0x{{[0-9a-z]+}}):
-# CHECK-NEXT:     DW_AT_name     ("localone")
-
-# CHECK:      DW_TAG_subprogram
-# CHECK:        DW_AT_name       ("funtwo")
-# CHECK:        DW_TAG_variable
-# CHECK:          DW_AT_location
-# CHECK-NEXT:         [0x{{[0-9a-z]+}}, 0x{{[0-9a-z]+}}):
-# CHECK-NEXT:     DW_AT_name     ("localtwo")
+# CHECK:        DW_TAG_variable [
+# CHECK-NEXT:     DW_AT_location [DW_FORM_sec_offset]
+# CHECK-NEXT:         [0x{{[0-9a-z]+}}, 0x{{[0-9a-z]+}})
+# CHECK-NEXT:     DW_AT_name {{.*}} = "localone"
+#
+# CHECK:        DW_TAG_variable [
+# CHECK-NEXT:     DW_AT_location [DW_FORM_sec_offset]
+# CHECK-NEXT:         [0x{{[0-9a-z]+}}, 0x{{[0-9a-z]+}})
+# CHECK-NEXT:     DW_AT_name {{.*}} = "localtwo"
 
 --- |
   target triple = "x86_64-unknown-linux-gnu"


        


More information about the llvm-commits mailing list