diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-03-22 20:57:13 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-03-22 20:57:13 +0000 |
commit | 6421a8815e14189121a5e20731fd005ea08793e1 (patch) | |
tree | 9bac7d62f3d88e0b1902b72db8b951782135aabe /include | |
parent | 97ab5803df4a549db9cd93e80426971e64562672 (diff) | |
download | external_llvm-6421a8815e14189121a5e20731fd005ea08793e1.zip external_llvm-6421a8815e14189121a5e20731fd005ea08793e1.tar.gz external_llvm-6421a8815e14189121a5e20731fd005ea08793e1.tar.bz2 |
Add a lto_codegen_compile_to_file to avoid producing a file, reading it to
memory and writing it back to disk.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128108 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm-c/lto.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm-c/lto.h b/include/llvm-c/lto.h index be08c4e..e4ede9c 100644 --- a/include/llvm-c/lto.h +++ b/include/llvm-c/lto.h @@ -272,6 +272,13 @@ lto_codegen_write_merged_modules(lto_code_gen_t cg, const char* path); extern const void* lto_codegen_compile(lto_code_gen_t cg, size_t* length); +/** + * Generates code for all added modules into one native object file. + * The name of the file is written to name. Returns true on error. + */ +extern bool +lto_codegen_compile_to_file(lto_code_gen_t cg, const char** name); + /** * Sets options to help debug codegen bugs. |