[llvm-commits] [PATCH 5/5] [llvm-c] Add LLVMMessageRef for user-owned strings.
Anders Waldenborg
anders at 0x63.nu
Mon Mar 19 13:24:53 PDT 2012
Adds a "typedef char *LLVMMessageRef;" to llvm-c.
This new typedef is used for strings where the user of the API must
use LLVMDisposeMessage to free the memory.
This both acts as documentation and simplifies automatic generation
of bindings.
---
include/llvm-c/Analysis.h | 2 +-
include/llvm-c/BitReader.h | 12 ++++++------
include/llvm-c/Core.h | 13 +++++++++----
include/llvm-c/Target.h | 2 +-
4 files changed, 17 insertions(+), 12 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-llvm-c-Add-LLVMMessageRef-for-user-owned-strings.patch
Type: text/x-patch
Size: 5509 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120319/dcba6ec1/attachment.bin>
More information about the llvm-commits
mailing list