[llvm] c9fb7f8 - [DEBUGINFO]Add dwarf versions to the test, NFC.

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 7 07:11:05 PDT 2020


Author: Alexey Bataev
Date: 2020-07-07T10:10:44-04:00
New Revision: c9fb7f81715a321a00096e0463b0e8635204641e

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

LOG: [DEBUGINFO]Add dwarf versions to the test, NFC.

Added: 
    

Modified: 
    llvm/test/DebugInfo/X86/packed_bitfields.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/DebugInfo/X86/packed_bitfields.ll b/llvm/test/DebugInfo/X86/packed_bitfields.ll
index 66768f98c02c..c36df72439eb 100644
--- a/llvm/test/DebugInfo/X86/packed_bitfields.ll
+++ b/llvm/test/DebugInfo/X86/packed_bitfields.ll
@@ -1,5 +1,7 @@
-; RUN: llc -mtriple x86_64-apple-macosx -O0 -filetype=obj -o %t_le.o %s
-; RUN: llvm-dwarfdump -v -debug-info %t_le.o | FileCheck %s
+; RUN: llc -dwarf-version=2 -mtriple x86_64-apple-macosx -O0 -filetype=obj -o %t_2_le.o %s
+; RUN: llvm-dwarfdump -v -debug-info %t_2_le.o | FileCheck %s
+; RUN: llc -dwarf-version=4 -debugger-tune=gdb -mtriple x86_64-apple-macosx -O0 -filetype=obj -o %t_4_le.o %s
+; RUN: llvm-dwarfdump -v -debug-info %t_4_le.o | FileCheck %s
 
 ; Produced at -O0 from:
 ; struct {
@@ -16,7 +18,7 @@
 ; CHECK:      DW_AT_byte_size  {{.*}} (0x01)
 ; CHECK-NEXT: DW_AT_bit_size   {{.*}} (0x06)
 ; CHECK-NEXT: DW_AT_bit_offset {{.*}} (0xffffffffffffffff)
-; CHECK-NEXT: DW_AT_data_member_location {{.*}} (DW_OP_plus_uconst 0x0)
+; CHECK-NEXT: DW_AT_data_member_location {{.*}} ({{.*}}0x0{{0*}})
 
 ; ModuleID = 'repro.c'
 source_filename = "repro.c"


        


More information about the llvm-commits mailing list