summaryrefslogtreecommitdiff
path: root/tools/lto/lto.exports
diff options
context:
space:
mode:
authorShuxin Yang <shuxin.llvm@gmail.com>2013-08-27 17:15:54 +0000
committerShuxin Yang <shuxin.llvm@gmail.com>2013-08-27 17:15:54 +0000
commit00c198042e22d781e46180a2aec2332945712552 (patch)
treebf97229034797f3e28fa4470cb2868cab9c759c8 /tools/lto/lto.exports
parentd371d4f0f473e447108e1860059e66ed3283cba7 (diff)
downloadllvm-00c198042e22d781e46180a2aec2332945712552.tar.gz
llvm-00c198042e22d781e46180a2aec2332945712552.tar.bz2
llvm-00c198042e22d781e46180a2aec2332945712552.tar.xz
Revert 189297, the original commit message is following.
---- Add new API lto_codegen_compile_parallel(). This API is proposed by Nick Kledzik. The semantic is: -------------------------------------------------------------------------- Generate code for merged module into an array of native object files. On success returns a pointer to an array of NativeObjectFile. The count parameter returns the number of elements in the array. Each element is a pointer/length for a generated mach-o/ELF buffer. 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 const struct NativeObjectFile* lto_codegen_compile_parallel(lto_code_gen_t cg, size_t *count); --------------------------------------------------------------------------- This API is currently only called on OSX platform. Linux or other Unixes using GNU gold are not supposed to call this function, because on these systems, object files are fed back to linker via disk file instead of memory buffer. In this commit, lto_codegen_compile_parallel() simply calls lto_codegen_compile() to return a single object file. In the near future, this function is the entry point for compilation with partition. Linker can blindly call this function even if partition is turned off; in this case, compiler will return only one object file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189386 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto/lto.exports')
-rw-r--r--tools/lto/lto.exports1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/lto/lto.exports b/tools/lto/lto.exports
index 61f0817f33..46d0d74c82 100644
--- a/tools/lto/lto.exports
+++ b/tools/lto/lto.exports
@@ -28,7 +28,6 @@ lto_codegen_set_assembler_args
lto_codegen_set_assembler_path
lto_codegen_set_cpu
lto_codegen_compile_to_file
-lto_codegen_compile_parallel
LLVMCreateDisasm
LLVMCreateDisasmCPU
LLVMDisasmDispose