[Patch] Support for Nuxi CloudABI

Eric Christopher echristo at gmail.com
Mon Mar 9 10:10:22 PDT 2015


Works for me.

Thanks!

-eric

On Sun, Mar 8, 2015 at 4:32 AM Ed Schouten <ed at nuxi.nl> wrote:

> 2015-03-07 17:46 GMT+01:00 Eric Christopher <echristo at gmail.com>:
> > That's fine. Just reply with the patch with testcase for the record. :)
>
> Sure!
>
> Before Eric pointed me to the unit tests for Triple, I was under the
> impression that we only tested triples by having accidental testing
> coverage for them through the IR dumps we have in test/. My idea was
> therefore to at least add some coverage for CloudABI by adjusting one
> of the existing tests to use the CloudABI triple:
>
> Index: test/CodeGen/X86/dwarf-eh-prepare.ll
> ===================================================================
> --- test/CodeGen/X86/dwarf-eh-prepare.ll        (revision 231492)
> +++ test/CodeGen/X86/dwarf-eh-prepare.ll        (working copy)
> @@ -1,4 +1,4 @@
> -; RUN: opt -mtriple=x86_64-linux-gnu -dwarfehprepare < %s -S | FileCheck
> %s
> +; RUN: opt -mtriple=x86_64-unknown-cloudabi -dwarfehprepare < %s -S |
> FileCheck %s
>
>  ; Check basic functionality of IR-to-IR DWARF EH preparation. This should
>  ; eliminate resumes. This pass requires a TargetMachine, so we put it
> under X86
>
> Further testing (after I sent the patch to Eric) revealed that this
> change makes little sense. LLVM doesn't really care if the triple you
> provide is valid at all. I used a couple of random OS names but none
> of them caused the test to fail.
>
> My proposal is to stick to the original patch I sent out two days ago,
> including the change to unittests/ADT/TripleTest.cpp. Attached is a
> combined patch.
>
> --
> Ed Schouten <ed at nuxi.nl>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150309/7d49ff8e/attachment.html>


More information about the llvm-commits mailing list