X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=include%2Fllvm-c%2Flto.h;h=51079896d7fdb348007486da5ce2bee01abafd35;hb=3cbd21c987a84b6aaa547f61bed5eda4b4ff9cb1;hp=9c2061acd62e1014f44e0093569febf17c6cb85c;hpb=817f5e2fa137b15b536c952bcc1e75b1dd34b4b1;p=oota-llvm.git diff --git a/include/llvm-c/lto.h b/include/llvm-c/lto.h index 9c2061acd62..51079896d7f 100644 --- a/include/llvm-c/lto.h +++ b/include/llvm-c/lto.h @@ -84,10 +84,10 @@ typedef enum { } lto_codegen_model; /** opaque reference to a loaded object module */ -typedef struct LTOModule* lto_module_t; +typedef struct LLVMOpaqueLTOModule *lto_module_t; /** opaque reference to a code generator */ -typedef struct LTOCodeGenerator* lto_code_gen_t; +typedef struct LLVMOpaqueLTOCodeGenerator *lto_code_gen_t; #ifdef __cplusplus extern "C" { @@ -403,8 +403,9 @@ lto_codegen_set_assembler_args(lto_code_gen_t cg, const char **args, int nargs); /** - * Tells LTO optimization passes that this symbol must be preserved - * because it is referenced by native code or a command line option. + * Adds to a list of all global symbols that must exist in the final generated + * code. If a function is not listed there, it might be inlined into every usage + * and optimized away. * * \since prior to LTO_API_VERSION=3 */