summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c/lto.h
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2015-04-17 17:10:09 +0000
committerManman Ren <manman.ren@gmail.com>2015-04-17 17:10:09 +0000
commitce0a0665241c116cf693936c11924ea756560951 (patch)
tree0cbc2488d48a88616f0630584200dc462aaa065f /llvm/include/llvm-c/lto.h
parent2161c49a4e8dd6b3e116a08719545ccd4ec1044f (diff)
downloadbcm5719-llvm-ce0a0665241c116cf693936c11924ea756560951.tar.gz
bcm5719-llvm-ce0a0665241c116cf693936c11924ea756560951.zip
[LTO API] add lto_codegen_set_should_internalize.
When debugging LTO issues with ld64, we use -save-temps to save the merged optimized bitcode file, then invoke ld64 again on the single bitcode file. The saved bitcode file is already internalized, so we can call lto_codegen_set_should_internalize and skip running internalization again. rdar://20227235 llvm-svn: 235211
Diffstat (limited to 'llvm/include/llvm-c/lto.h')
-rw-r--r--llvm/include/llvm-c/lto.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/llvm/include/llvm-c/lto.h b/llvm/include/llvm-c/lto.h
index c6acdaddca5..2f3aac7ed87 100644
--- a/llvm/include/llvm-c/lto.h
+++ b/llvm/include/llvm-c/lto.h
@@ -40,7 +40,7 @@ typedef bool lto_bool_t;
* @{
*/
-#define LTO_API_VERSION 13
+#define LTO_API_VERSION 14
/**
* \since prior to LTO_API_VERSION=3
@@ -548,6 +548,16 @@ lto_codegen_debug_options(lto_code_gen_t cg, const char *);
extern void
lto_initialize_disassembler(void);
+/**
+ * Sets if we should run internalize pass during optimization and code
+ * generation.
+ *
+ * \since prior to LTO_API_VERSION=14
+ */
+extern void
+lto_codegen_set_should_internalize(lto_code_gen_t cg,
+ lto_bool_t ShouldInternalize);
+
#ifdef __cplusplus
}
#endif
OpenPOWER on IntegriCloud