[llvm-commits] llvm-c patch to add LLVMGetTypeByName and LLVMConstPointerNull

Owen Anderson resistor at mac.com
Fri Jul 3 19:41:46 PDT 2009


Wladimir,

For LLVMConstPointerNull, please also add a version that takes an  
LLVMContextRef and fetches the constant through it.

--Owen

On Jul 2, 2009, at 7:56 PM, Wladimir van der Laan wrote:

> Dear LLVM developers,
>
> When working on a project using LLVM I ran into two important calls
> that were missing from the llvm-c API (and thus from llvm-py, which
> binds it):
>
> LLVMGetTypeByName - a way to get a typedef by name
> LLVMConstPointerNull - get a null pointer of whatever type
>
> The attached patch fixes this problem by adding them in Core.h and
> Core.cpp. I might run into more of these, but I thought it'd be better
> to send this patch before I forget about it.
>
> Greetings,
> Wladimir
> <core.patch>_______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list