[llvm-commits] [llvm] r74663 - /llvm/trunk/include/llvm-c/lto.h

Owen Anderson resistor at mac.com
Wed Jul 1 16:29:47 PDT 2009


This is based on a patch by John Mosby.

--Owen

On Jul 1, 2009, at 4:28 PM, Owen Anderson wrote:

> Author: resistor
> Date: Wed Jul  1 18:28:55 2009
> New Revision: 74663
>
> URL: http://llvm.org/viewvc/llvm-project?rev=74663&view=rev
> Log:
> Fix the LTO header for LLVMContext changes.
>
> Modified:
>    llvm/trunk/include/llvm-c/lto.h
>
> Modified: llvm/trunk/include/llvm-c/lto.h
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/lto.h?rev=74663&r1=74662&r2=74663&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- llvm/trunk/include/llvm-c/lto.h (original)
> +++ llvm/trunk/include/llvm-c/lto.h Wed Jul  1 18:28:55 2009
> @@ -16,6 +16,7 @@
> #ifndef LTO_H
> #define LTO_H  1
>
> +#include "llvm-c/Core.h"
> #include <stdbool.h>
> #include <stddef.h>
>
> @@ -112,7 +113,7 @@
>  * Returns NULL on error (check lto_get_error_message() for details).
>  */
> extern lto_module_t
> -lto_module_create(const char* path);
> +lto_module_create(const char* path, LLVMContextRef Ctxt);
>
>
> /**
> @@ -120,7 +121,8 @@
>  * Returns NULL on error (check lto_get_error_message() for details).
>  */
> extern lto_module_t
> -lto_module_create_from_memory(const void* mem, size_t length);
> +lto_module_create_from_memory(const void* mem, size_t length,
> +                              LLVMContextRef Ctxt);
>
>
> /**
> @@ -164,7 +166,7 @@
>  * Returns NULL on error (check lto_get_error_message() for details).
>  */
> extern lto_code_gen_t
> -lto_codegen_create(void);
> +lto_codegen_create(LLVMContextRef Ctxt);
>
>
> /**
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list