summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c/lto.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-03-22 20:57:13 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-03-22 20:57:13 +0000
commit26b57ffa270333d377b8cbe82ae7d76621293882 (patch)
tree24d27d087bcd2d93d86aa51676de1e43fdbb02f0 /llvm/include/llvm-c/lto.h
parent822e7bc061ec77efd38154c6011403dfa92174ac (diff)
downloadbcm5719-llvm-26b57ffa270333d377b8cbe82ae7d76621293882.tar.gz
bcm5719-llvm-26b57ffa270333d377b8cbe82ae7d76621293882.zip
Add a lto_codegen_compile_to_file to avoid producing a file, reading it to
memory and writing it back to disk. llvm-svn: 128108
Diffstat (limited to 'llvm/include/llvm-c/lto.h')
-rw-r--r--llvm/include/llvm-c/lto.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/lto.h b/llvm/include/llvm-c/lto.h
index be08c4eb196..e4ede9cc6d8 100644
--- a/llvm/include/llvm-c/lto.h
+++ b/llvm/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.
OpenPOWER on IntegriCloud