[llvm-commits] [PATH] Fix C binding

Zoltan Varga vargaz at gmail.com
Wed Jul 15 12:38:57 PDT 2009


Hi,

  Here is patch to implement the c++->c enum mapping for LLVMTypeKind.

                                      Zoltan

On Wed, Jul 15, 2009 at 2:45 AM, Chris Lattner <clattner at apple.com> wrote:

>
> On Jul 14, 2009, at 11:31 AM, Zoltan Varga wrote:
>
> > Hi,
> >
> >    The attached patch fixes the C backend by syncing the
> > LLVMTypeKind enum with its c++ counterpart. Please review and commit
> > if its ok.
>
> Hi Zoltan,
>
> Thank you for bringing this issue up.  The C API is supposed to remain
> stable, so any new enums should be added to the end of the list.
> There should be a switch statement inside the implementation of the C
> API that translates the C version of the enum to the C++ version (we
> shouldn't depend on them to line up).
>
> Owen, can you tackle this?
>
> -Chris
> _______________________________________________
> 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/20090715/44fb1d8d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm.diff
Type: text/x-patch
Size: 2637 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090715/44fb1d8d/attachment.bin>


More information about the llvm-commits mailing list