[llvm] r254814 - [MC] Add a test for state reset in MCMachOStreamer

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 8 19:20:29 PST 2015


Awesome, thanks!
On Dec 4, 2015 8:05 PM, "Keno Fischer via llvm-commits" <
llvm-commits at lists.llvm.org> wrote:

> Author: kfischer
> Date: Fri Dec  4 19:02:53 2015
> New Revision: 254814
>
> URL: http://llvm.org/viewvc/llvm-project?rev=254814&view=rev
> Log:
> [MC] Add a test for state reset in MCMachOStreamer
>
> This was fixed in r254751, but untestable until r254774, which
> added the necessary command line flag to llc. Add a test now
> to make sure this doesn't regress again.
>
> Added:
>     llvm/trunk/test/MC/MachO/empty-twice.ll
>
> Added: llvm/trunk/test/MC/MachO/empty-twice.ll
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/MachO/empty-twice.ll?rev=254814&view=auto
>
> ==============================================================================
> --- llvm/trunk/test/MC/MachO/empty-twice.ll (added)
> +++ llvm/trunk/test/MC/MachO/empty-twice.ll Fri Dec  4 19:02:53 2015
> @@ -0,0 +1,12 @@
> +; Check that there is no persistent state in the MachO emitter that
> crashes
> +; us when reusing the pass manager.
> +; RUN: llc -mtriple=x86_64-apple-darwin -compile-twice -filetype=obj %s
> -o -
> +
> +; Force the creation of a DWARF section
> +!llvm.dbg.cu = !{!0}
> +!llvm.module.flags = !{!3, !4}
> +
> +!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer:
> "LLVM", isOptimized: true)
> +!1 = !DIFile(filename: "<stdin>", directory: "/")
> +!3 = !{i32 2, !"Dwarf Version", i32 4}
> +!4 = !{i32 2, !"Debug Info Version", i32 3}
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151208/01cce270/attachment.html>


More information about the llvm-commits mailing list