Hi,<br><br>  Here is patch to implement the c++->c enum mapping for LLVMTypeKind.<br><br>                                      Zoltan<br><br><div class="gmail_quote">On Wed, Jul 15, 2009 at 2:45 AM, Chris Lattner <span dir="ltr"><<a href="mailto:clattner@apple.com">clattner@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im"><br>
On Jul 14, 2009, at 11:31 AM, Zoltan Varga wrote:<br>
<br>
> Hi,<br>
><br>
>    The attached patch fixes the C backend by syncing the<br>
> LLVMTypeKind enum with its c++ counterpart. Please review and commit<br>
> if its ok.<br>
<br>
</div>Hi Zoltan,<br>
<br>
Thank you for bringing this issue up.  The C API is supposed to remain<br>
stable, so any new enums should be added to the end of the list.<br>
There should be a switch statement inside the implementation of the C<br>
API that translates the C version of the enum to the C++ version (we<br>
shouldn't depend on them to line up).<br>
<br>
Owen, can you tackle this?<br>
<br>
-Chris<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>
</blockquote></div><br>