@@ -550,6 +550,48 @@ extern void
550
550
lto_codegen_set_should_embed_uselists (lto_code_gen_t cg ,
551
551
lto_bool_t ShouldEmbedUselists );
552
552
553
+ /** Opaque reference to an LTO input file */
554
+ typedef struct LLVMOpaqueLTOInput * lto_input_t ;
555
+
556
+ /**
557
+ * Creates an LTO input file from a buffer. The path
558
+ * argument is used for diagnotics as this function
559
+ * otherwise does not know which file the given buffer
560
+ * is associated with.
561
+ *
562
+ * \since LTO_API_VERSION=24
563
+ */
564
+ extern lto_input_t lto_input_create (const void * buffer ,
565
+ size_t buffer_size ,
566
+ const char * path );
567
+
568
+ /**
569
+ * Frees all memory internally allocated by the LTO input file.
570
+ * Upon return the lto_module_t is no longer valid.
571
+ *
572
+ * \since LTO_API_VERSION=24
573
+ */
574
+ extern void lto_input_dispose (lto_input_t input );
575
+
576
+ /**
577
+ * Returns the number of dependent library specifiers
578
+ * for the given LTO input file.
579
+ *
580
+ * \since LTO_API_VERSION=24
581
+ */
582
+ extern unsigned lto_input_get_num_dependent_libraries (lto_input_t input );
583
+
584
+ /**
585
+ * Returns the ith dependent library specifier
586
+ * for the given LTO input file. The returned
587
+ * string is not null-terminated.
588
+ *
589
+ * \since LTO_API_VERSION=24
590
+ */
591
+ extern const char * lto_input_get_dependent_library (lto_input_t input ,
592
+ size_t index ,
593
+ size_t * size );
594
+
553
595
/**
554
596
* @} // endgoup LLVMCLTO
555
597
* @defgroup LLVMCTLTO ThinLTO
@@ -846,48 +888,6 @@ thinlto_codegen_set_cache_size_megabytes(thinlto_code_gen_t cg,
846
888
extern void thinlto_codegen_set_cache_size_files (thinlto_code_gen_t cg ,
847
889
unsigned max_size_files );
848
890
849
- /** Opaque reference to an LTO input file */
850
- typedef struct LLVMOpaqueLTOInput * lto_input_t ;
851
-
852
- /**
853
- * Creates an LTO input file from a buffer. The path
854
- * argument is used for diagnotics as this function
855
- * otherwise does not know which file the given buffer
856
- * is associated with.
857
- *
858
- * \since LTO_API_VERSION=24
859
- */
860
- extern lto_input_t lto_input_create (const void * buffer ,
861
- size_t buffer_size ,
862
- const char * path );
863
-
864
- /**
865
- * Frees all memory internally allocated by the LTO input file.
866
- * Upon return the lto_module_t is no longer valid.
867
- *
868
- * \since LTO_API_VERSION=24
869
- */
870
- extern void lto_input_dispose (lto_input_t input );
871
-
872
- /**
873
- * Returns the number of dependent library specifiers
874
- * for the given LTO input file.
875
- *
876
- * \since LTO_API_VERSION=24
877
- */
878
- extern unsigned lto_input_get_num_dependent_libraries (lto_input_t input );
879
-
880
- /**
881
- * Returns the ith dependent library specifier
882
- * for the given LTO input file. The returned
883
- * string is not null-terminated.
884
- *
885
- * \since LTO_API_VERSION=24
886
- */
887
- extern const char * lto_input_get_dependent_library (lto_input_t input ,
888
- size_t index ,
889
- size_t * size );
890
-
891
891
/**
892
892
* @} // endgroup LLVMCTLTO_CACHING
893
893
*/
0 commit comments