[llvm] r196396 - DebugInfo: Improve test to use llvm-dwarfdump

David Blaikie dblaikie at gmail.com
Wed Dec 4 10:40:30 PST 2013


Author: dblaikie
Date: Wed Dec  4 12:40:29 2013
New Revision: 196396

URL: http://llvm.org/viewvc/llvm-project?rev=196396&view=rev
Log:
DebugInfo: Improve test to use llvm-dwarfdump

Modified:
    llvm/trunk/test/DebugInfo/2010-05-10-MultipleCU.ll

Modified: llvm/trunk/test/DebugInfo/2010-05-10-MultipleCU.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/2010-05-10-MultipleCU.ll?rev=196396&r1=196395&r2=196396&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/2010-05-10-MultipleCU.ll (original)
+++ llvm/trunk/test/DebugInfo/2010-05-10-MultipleCU.ll Wed Dec  4 12:40:29 2013
@@ -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:





More information about the llvm-commits mailing list