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

Eric Christopher echristo at gmail.com
Thu Dec 27 11:33:08 PST 2012


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.

-eric


On Thu, Dec 27, 2012 at 11:29 AM, Rafael EspĂ­ndola <
rafael.espindola at gmail.com> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121227/91c0319d/attachment.html>


More information about the llvm-commits mailing list