DebugInfo: Improve test to use llvm-dwarfdump
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 4 Dec 2013 18:40:29 +0000 (18:40 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 4 Dec 2013 18:40:29 +0000 (18:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196396 91177308-0d34-0410-b5e6-96231b3b80d8

test/DebugInfo/2010-05-10-MultipleCU.ll

index 5af5e1f1ae651a793e24881d1e98857852900117..870f059521f5a9d7fca5466416872431779e5a3c 100644 (file)
@@ -1,19 +1,11 @@
-; RUN: llc -O0 -asm-verbose < %s | FileCheck %s
-; One for a.c, second one for b.c and third one for abbrev.
+; REQUIRES: object-emission
 
-; CHECK: info_begin
-; CHECK: DW_TAG_compile_unit
-; CHECK-NOT: DW_TAG_compile_unit
-; CHECK: info_end
+; RUN: llc -O0 -filetype=obj < %s | llvm-dwarfdump -debug-dump=info - | FileCheck %s
 
-; CHECK: info_begin
-; CHECK: DW_TAG_compile_unit
-; CHECK-NOT: DW_TAG_compile_unit
-; CHECK: info_end
+; Check that two compile units are generated
 
-; CHECK: debug_abbrev
-; CHECK: DW_TAG_compile_unit
-; CHECK-NOT: DW_TAG_compile_unit
+; CHECK: Compile Unit:
+; CHECK: Compile Unit:
 
 define i32 @foo() nounwind readnone ssp {
 return: