<div dir="ltr">Oh right. Sorry. That said I was making it a little proof against the symbol renaming I did. Also it took me a minute to figure out what it was testing (though verbose assembly would have helped) so dumping the textual representation of the dwarf will make it easier if anything changes there.<div>
<br></div><div>-eric</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 27, 2012 at 11:29 AM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 26 December 2012 21:13, Eric Christopher <<a href="mailto:echristo@gmail.com">echristo@gmail.com</a>> wrote:<br>

> Author: echristo<br>
> Date: Wed Dec 26 20:13:55 2012<br>
> New Revision: 171131<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=171131&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=171131&view=rev</a><br>
> Log:<br>
> FileCheck-ize.<br>
<br>
</div>It was already using FileCheck. What the patch does is change it to<br>
also use llvm-objdump istead of parsing assembly. Why?<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
> Modified:<br>
>     llvm/trunk/test/DebugInfo/X86/2011-09-26-GlobalVarContext.ll<br>
><br>
> Modified: llvm/trunk/test/DebugInfo/X86/2011-09-26-GlobalVarContext.ll<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/X86/2011-09-26-GlobalVarContext.ll?rev=171131&r1=171130&r2=171131&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/X86/2011-09-26-GlobalVarContext.ll?rev=171131&r1=171130&r2=171131&view=diff</a><br>

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