[llvm-commits] TypeBuilder helper class

Jeffrey Yasskin jyasskin at google.com
Thu Apr 2 11:37:52 PDT 2009


When declaring global variables and functions that are defined in the
Python C libraries, I've found the attached class helpful.
TypeBuilder<void(int*, size_t*)>::get() will return an LLVM Type*
corresponding to that function type, which is otherwise quite verbose
to build up. Let me know what you think.

Jeffrey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: typebuilder.patch
Type: application/octet-stream
Size: 18083 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090402/c4c4142e/attachment.obj>


More information about the llvm-commits mailing list