LTO: Add API to choose whether to embed uselists
[oota-llvm.git] / tools / lto / lto.cpp
index e66a7786a146283c35b5cfde9686a9bce4475534..d6ceebed728fcb46bba13d1e921bf668e0cbd512 100644 (file)
@@ -338,3 +338,8 @@ void lto_codegen_set_should_internalize(lto_code_gen_t cg,
                                         bool ShouldInternalize) {
   unwrap(cg)->setShouldInternalize(ShouldInternalize);
 }
+
+void lto_codegen_set_should_embed_uselists(lto_code_gen_t cg,
+                                           lto_bool_t ShouldEmbedUselists) {
+  unwrap(cg)->setShouldEmbedUselists(ShouldEmbedUselists);
+}