diff options
author | Nick Kledzik <kledzik@apple.com> | 2008-02-27 22:25:36 +0000 |
---|---|---|
committer | Nick Kledzik <kledzik@apple.com> | 2008-02-27 22:25:36 +0000 |
commit | ef194ed74033eba099f4f391ffdfc176f9aa6f26 (patch) | |
tree | b5da7d350b61b7aa5f487bb0e38b64b960cf281e /include | |
parent | cfd72797b5328c9bb9328b7866a216c26bbec545 (diff) | |
download | external_llvm-ef194ed74033eba099f4f391ffdfc176f9aa6f26.zip external_llvm-ef194ed74033eba099f4f391ffdfc176f9aa6f26.tar.gz external_llvm-ef194ed74033eba099f4f391ffdfc176f9aa6f26.tar.bz2 |
fixes from review of first commit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47695 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm-c/lto.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/llvm-c/lto.h b/include/llvm-c/lto.h index 8d4590b..e42271d 100644 --- a/include/llvm-c/lto.h +++ b/include/llvm-c/lto.h @@ -218,11 +218,12 @@ lto_codegen_write_merged_modules(lto_code_gen_t cg, const char* path); /** * Generates code for all added modules into one native object file. * On sucess returns a pointer to a generated mach-o/ELF buffer and - * length set to the buffer size. Client owns the buffer and should - * free() it when done. + * length set to the buffer size. The buffer is owned by the + * lto_code_gen_t and will be freed when lto_codegen_dispose() + * is called, or lto_codegen_compile() is called again. * On failure, returns NULL (check lto_get_error_message() for details). */ -extern void* +extern const void* lto_codegen_compile(lto_code_gen_t cg, size_t* length); |