summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2015-03-25 17:58:09 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2015-03-25 17:58:09 +0000
commitff2a64cf1bedc3196f949848fcf8773b95484c60 (patch)
treef9d172f97d545610f6bce45b13083098501ae47c /llvm/test/DebugInfo
parentb736065f782a36f594a4b3ae1ed28f854fab2fc4 (diff)
downloadbcm5719-llvm-ff2a64cf1bedc3196f949848fcf8773b95484c60.tar.gz
bcm5719-llvm-ff2a64cf1bedc3196f949848fcf8773b95484c60.zip
Simplify missing-file-line.ll test.
llvm-svn: 233201
Diffstat (limited to 'llvm/test/DebugInfo')
-rw-r--r--llvm/test/DebugInfo/X86/missing-file-line.ll32
1 files changed, 14 insertions, 18 deletions
diff --git a/llvm/test/DebugInfo/X86/missing-file-line.ll b/llvm/test/DebugInfo/X86/missing-file-line.ll
index 2e84b8affeb..6c09f4d940c 100644
--- a/llvm/test/DebugInfo/X86/missing-file-line.ll
+++ b/llvm/test/DebugInfo/X86/missing-file-line.ll
@@ -1,9 +1,6 @@
; REQUIRES: object-emission
-; RUN: llc -mtriple=x86_64-linux-gnu -filetype=obj %s -o - | llvm-dwarfdump -debug-dump=all - > %t
-; RUN: FileCheck --check-prefix=CHECK1 %s < %t
-; RUN: FileCheck --check-prefix=CHECK2 %s < %t
-; RUN: FileCheck --check-prefix=CHECK3 %s < %t
+; RUN: llc -mtriple=x86_64-linux-gnu -filetype=obj %s -o - | llvm-dwarfdump -debug-dump=all - | FileCheck %s
; 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
@@ -16,20 +13,19 @@ target triple = "x86_64-unknown-linux-gnu"
define void @f() {
%x = alloca %struct.S, align 8
- ; CHECK1: DW_TAG_structure_type
- ; CHECK1-NOT: DW_AT_decl_file
- ; CHECK1-NOT: DW_AT_decl_line
- ; CHECK1: {{DW_TAG|NULL}}
-
- ; CHECK2: DW_TAG_member
- ; CHECK2-NOT: DW_AT_decl_file
- ; CHECK2-NOT: DW_AT_decl_line
- ; CHECK2: {{DW_TAG|NULL}}
-
- ; CHECK3: DW_TAG_typedef
- ; CHECK3-NOT: DW_AT_decl_file
- ; CHECK3-NOT: DW_AT_decl_line
- ; CHECK3: {{DW_TAG|NULL}}
+ ; CHECK: DW_TAG_typedef
+ ; CHECK-NOT: DW_AT_decl_file
+ ; CHECK-NOT: DW_AT_decl_line
+
+ ; CHECK: DW_TAG_structure_type
+ ; CHECK-NOT: DW_AT_decl_file
+ ; CHECK-NOT: DW_AT_decl_line
+
+ ; CHECK: DW_TAG_member
+ ; CHECK-NOT: DW_AT_decl_file
+ ; CHECK-NOT: DW_AT_decl_line
+
+ ; CHECK: {{DW_TAG|NULL}}
call void @llvm.dbg.declare(metadata %struct.S* %x, metadata !10, metadata !16), !dbg !17
ret void, !dbg !18
}
OpenPOWER on IntegriCloud