[llvm-commits] [llvm] r171131 - /llvm/trunk/test/DebugInfo/X86/2011-09-26-GlobalVarContext.ll

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Dec 27 11:29:19 PST 2012


On 26 December 2012 21:13, Eric Christopher <echristo at gmail.com> wrote:
> Author: echristo
> Date: Wed Dec 26 20:13:55 2012
> New Revision: 171131
>
> URL: http://llvm.org/viewvc/llvm-project?rev=171131&view=rev
> Log:
> FileCheck-ize.

It was already using FileCheck. What the patch does is change it to
also use llvm-objdump istead of parsing assembly. Why?


> Modified:
>     llvm/trunk/test/DebugInfo/X86/2011-09-26-GlobalVarContext.ll
>
> Modified: llvm/trunk/test/DebugInfo/X86/2011-09-26-GlobalVarContext.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/X86/2011-09-26-GlobalVarContext.ll?rev=171131&r1=171130&r2=171131&view=diff
> ==============================================================================
> --- llvm/trunk/test/DebugInfo/X86/2011-09-26-GlobalVarContext.ll (original)
> +++ llvm/trunk/test/DebugInfo/X86/2011-09-26-GlobalVarContext.ll Wed Dec 26 20:13:55 2012
> @@ -1,4 +1,5 @@
> -; RUN: llc -mtriple=x86_64-pc-linux-gnu -asm-verbose %s -o - | FileCheck %s
> +; RUN: llc -mtriple=x86_64-pc-linux-gnu %s -o %t -filetype=obj
> +; RUN: llvm-dwarfdump %t | FileCheck %s
>
>  ; ModuleID = 'test.c'
>
> @@ -38,10 +39,13 @@
>  !18 = metadata !{i32 4, i32 23, metadata !16, null}
>  !19 = metadata !{i32 5, i32 5, metadata !16, null}
>
> -; CHECK: .long .Lstring3
> -; CHECK: .byte 1
> -; CHECK: .byte 1
> -
> -; CHECK: .long .Lstring6
> -; CHECK: .byte 1
> -; CHECK: .byte 4
> +; CHECK: DW_TAG_variable [3]
> +; CHECK: DW_AT_name [DW_FORM_strp]       ( .debug_str[0x00000043] = "GLB")
> +; CHECK: DW_AT_decl_file [DW_FORM_data1] (0x01)
> +; CHECK: DW_AT_decl_line [DW_FORM_data1] (0x01)
> +
> +; CHECK: DW_TAG_variable [6]
> +; CHECK: DW_AT_name [DW_FORM_strp]   ( .debug_str[0x0000004d] = "LOC")
> +; CHECK: DW_AT_decl_file [DW_FORM_data1]     (0x01)
> +; CHECK: DW_AT_decl_line [DW_FORM_data1]     (0x04)
> +
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits



More information about the llvm-commits mailing list