projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add new API lto_codegen_compile_parallel().
[oota-llvm.git]
/
tools
/
lto
/
lto.cpp
diff --git
a/tools/lto/lto.cpp
b/tools/lto/lto.cpp
index db7147c2bc7e43ee9ca89395e1cb1aa750c139ce..bbb6071ce8ab10b71b81631b5bdd78ba3017fcc1 100644
(file)
--- a/
tools/lto/lto.cpp
+++ b/
tools/lto/lto.cpp
@@
-207,6
+207,11
@@
bool lto_codegen_compile_to_file(lto_code_gen_t cg, const char **name) {
return !cg->compile_to_file(name, sLastErrorString);
}
return !cg->compile_to_file(name, sLastErrorString);
}
+extern const struct NativeObjectFile *
+lto_codegen_compile_parallel(lto_code_gen_t cg, size_t *count) {
+ return cg->compile_parallel(count, sLastErrorString);
+}
+
/// lto_codegen_debug_options - Used to pass extra options to the code
/// generator.
void lto_codegen_debug_options(lto_code_gen_t cg, const char *opt) {
/// lto_codegen_debug_options - Used to pass extra options to the code
/// generator.
void lto_codegen_debug_options(lto_code_gen_t cg, const char *opt) {