diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-01 23:28:55 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-01 23:28:55 +0000 |
commit | 335bcc760d60b0f8b450dc5924b03a2937b00a96 (patch) | |
tree | 83a2e8c02805cf17265a8263bd836eb7be62274f | |
parent | 62476cceee2dabb65d8370ce33aeb89ae706ebb1 (diff) | |
download | external_llvm-335bcc760d60b0f8b450dc5924b03a2937b00a96.zip external_llvm-335bcc760d60b0f8b450dc5924b03a2937b00a96.tar.gz external_llvm-335bcc760d60b0f8b450dc5924b03a2937b00a96.tar.bz2 |
Fix the LTO header for LLVMContext changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74663 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm-c/lto.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/llvm-c/lto.h b/include/llvm-c/lto.h index d9a2e5c..49b8bfb 100644 --- a/include/llvm-c/lto.h +++ b/include/llvm-c/lto.h @@ -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 @@ lto_module_is_object_file_in_memory_for_target(const void* mem, size_t length, * 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 @@ lto_module_create(const char* path); * 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 @@ lto_module_get_symbol_attribute(lto_module_t mod, unsigned int index); * 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); /** |