OLD | NEW |
1 /*===-- llvm-c/lto.h - LTO Public C Interface ---------------------*- C -*-===*\ | 1 /*===-- llvm-c/lto.h - LTO Public C Interface ---------------------*- C -*-===*\ |
2 |* *| | 2 |* *| |
3 |* The LLVM Compiler Infrastructure *| | 3 |* The LLVM Compiler Infrastructure *| |
4 |* *| | 4 |* *| |
5 |* This file is distributed under the University of Illinois Open Source *| | 5 |* This file is distributed under the University of Illinois Open Source *| |
6 |* License. See LICENSE.TXT for details. *| | 6 |* License. See LICENSE.TXT for details. *| |
7 |* *| | 7 |* *| |
8 |*===----------------------------------------------------------------------===*| | 8 |*===----------------------------------------------------------------------===*| |
9 |* *| | 9 |* *| |
10 |* This header provides public interface to an abstract link time optimization*| | 10 |* This header provides public interface to an abstract link time optimization*| |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 | 252 |
253 | 253 |
254 | 254 |
255 /** | 255 /** |
256 * Add an object module to the set of modules for which code will be generated. | 256 * Add an object module to the set of modules for which code will be generated. |
257 * Returns true on error (check lto_get_error_message() for details). | 257 * Returns true on error (check lto_get_error_message() for details). |
258 */ | 258 */ |
259 extern bool | 259 extern bool |
260 lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod); | 260 lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod); |
261 | 261 |
| 262 /* @LOCALMOD-BEGIN */ |
| 263 /** |
| 264 * Add an object module to the set of modules for which code will be generated. |
| 265 * This does not merge the module immediately, unlike lto_codegen_add_module. |
| 266 * It will hold onto the module until the user calls |
| 267 * lto_codegen_link_gathered_modules_and_dispose(). The lto_module_t |
| 268 * should now by owned by the lto_code_gen_t, and will be freed when |
| 269 * the link is done. |
| 270 */ |
| 271 extern bool |
| 272 lto_codegen_gather_module_for_link(lto_code_gen_t cg, lto_module_t mod); |
262 | 273 |
| 274 /** |
| 275 * Merges modules that are part of the set of modules gathered by |
| 276 * lto_codegen_gather_module_for_link(), and the also destroys the modules |
| 277 * as lto_module_dispose() would. |
| 278 */ |
| 279 extern bool |
| 280 lto_codegen_link_gathered_modules_and_dispose(lto_code_gen_t cg); |
| 281 /* @LOCALMOD-END*/ |
263 | 282 |
264 /** | 283 /** |
265 * Sets if debug info should be generated. | 284 * Sets if debug info should be generated. |
266 * Returns true on error (check lto_get_error_message() for details). | 285 * Returns true on error (check lto_get_error_message() for details). |
267 */ | 286 */ |
268 extern bool | 287 extern bool |
269 lto_codegen_set_debug_model(lto_code_gen_t cg, lto_debug_model); | 288 lto_codegen_set_debug_model(lto_code_gen_t cg, lto_debug_model); |
270 | 289 |
271 | 290 |
272 /** | 291 /** |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 | 410 |
392 #ifdef __cplusplus | 411 #ifdef __cplusplus |
393 } | 412 } |
394 #endif | 413 #endif |
395 | 414 |
396 /** | 415 /** |
397 * @} | 416 * @} |
398 */ | 417 */ |
399 | 418 |
400 #endif | 419 #endif |
OLD | NEW |