[llvm] e5c3b97 - DWARFVerifier: Test failures to parse DW_AT_locations

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 16 22:27:09 PST 2021


Author: David Blaikie
Date: 2021-12-16T22:24:32-08:00
New Revision: e5c3b9711677fc21a3b288ecba4205b3478f890e

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

LOG: DWARFVerifier: Test failures to parse DW_AT_locations

Added: 
    

Modified: 
    llvm/test/tools/llvm-dwarfdump/X86/verify_split_cu.s

Removed: 
    


################################################################################
diff  --git a/llvm/test/tools/llvm-dwarfdump/X86/verify_split_cu.s b/llvm/test/tools/llvm-dwarfdump/X86/verify_split_cu.s
index 402353ce18cc..755dc9f67c8f 100644
--- a/llvm/test/tools/llvm-dwarfdump/X86/verify_split_cu.s
+++ b/llvm/test/tools/llvm-dwarfdump/X86/verify_split_cu.s
@@ -5,6 +5,7 @@
 # CHECK: Verifying dwo Units...
 # CHECK: error: Compilation unit root DIE is not a unit DIE: DW_TAG_null.
 # CHECK: error: Compilation unit type (DW_UT_split_compile) and root DIE (DW_TAG_null) do not match.
+# CHECK: error: Unsupported DW_AT_location encoding: DW_FORM_data1
 # FIXME: This should read "type unit" or just "unit" to be correct for this case/in general
 # CHECK: error: DIE has DW_AT_decl_file that references a file with index 1 and the compile unit has no line table
 # CHECK: Errors detected
@@ -27,6 +28,7 @@
 	.quad	2                               # DWO ID
 	.byte	1                               # Abbrev [1] DW_TAG_compile_unit
 	.byte	0                               # DW_AT_decl_file
+	.byte	0				# DW_AT_location
 .Ldebug_info_dwo_end2:
 .Ldebug_info_dwo_prestart3:
 	.long	.Ldebug_info_dwo_end3-.Ldebug_info_dwo_start3 # Length of Unit
@@ -61,6 +63,8 @@
 	.byte	0                               # DW_CHILDREN_no
 	.byte	58                              # DW_AT_decl_file
 	.byte	11                              # DW_FORM_data1
+	.byte	2                               # DW_AT_location
+	.byte	11                              # DW_FORM_data1
 	.byte	0                               # EOM(1)
 	.byte	0                               # EOM(2)
 	.byte	2                               # Abbreviation Code


        


More information about the llvm-commits mailing list