Simplify missing-file-line.ll test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233201 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Peter Collingbourne 2015-03-25 17:58:09 +00:00
parent c33c447af9
commit 489e5e5a86

View File

@ -1,9 +1,6 @@
; REQUIRES: object-emission ; REQUIRES: object-emission
; RUN: llc -mtriple=x86_64-linux-gnu -filetype=obj %s -o - | llvm-dwarfdump -debug-dump=all - > %t ; RUN: llc -mtriple=x86_64-linux-gnu -filetype=obj %s -o - | llvm-dwarfdump -debug-dump=all - | FileCheck %s
; RUN: FileCheck --check-prefix=CHECK1 %s < %t
; RUN: FileCheck --check-prefix=CHECK2 %s < %t
; RUN: FileCheck --check-prefix=CHECK3 %s < %t
; Test that we accept and generate DWARF entities for DW_TAG_structure_type, ; Test that we accept and generate DWARF entities for DW_TAG_structure_type,
; DW_TAG_member and DW_TAG_typedef with no source location. These can come up ; DW_TAG_member and DW_TAG_typedef with no source location. These can come up
@ -16,20 +13,19 @@ target triple = "x86_64-unknown-linux-gnu"
define void @f() { define void @f() {
%x = alloca %struct.S, align 8 %x = alloca %struct.S, align 8
; CHECK1: DW_TAG_structure_type ; CHECK: DW_TAG_typedef
; CHECK1-NOT: DW_AT_decl_file ; CHECK-NOT: DW_AT_decl_file
; CHECK1-NOT: DW_AT_decl_line ; CHECK-NOT: DW_AT_decl_line
; CHECK1: {{DW_TAG|NULL}}
; CHECK2: DW_TAG_member ; CHECK: DW_TAG_structure_type
; CHECK2-NOT: DW_AT_decl_file ; CHECK-NOT: DW_AT_decl_file
; CHECK2-NOT: DW_AT_decl_line ; CHECK-NOT: DW_AT_decl_line
; CHECK2: {{DW_TAG|NULL}}
; CHECK3: DW_TAG_typedef ; CHECK: DW_TAG_member
; CHECK3-NOT: DW_AT_decl_file ; CHECK-NOT: DW_AT_decl_file
; CHECK3-NOT: DW_AT_decl_line ; CHECK-NOT: DW_AT_decl_line
; CHECK3: {{DW_TAG|NULL}}
; CHECK: {{DW_TAG|NULL}}
call void @llvm.dbg.declare(metadata %struct.S* %x, metadata !10, metadata !16), !dbg !17 call void @llvm.dbg.declare(metadata %struct.S* %x, metadata !10, metadata !16), !dbg !17
ret void, !dbg !18 ret void, !dbg !18
} }