summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-01 23:28:55 +0000
committerOwen Anderson <resistor@mac.com>2009-07-01 23:28:55 +0000
commit54648d867f727b096e1179337a8b4a2ef075a838 (patch)
tree58ffd47e25ac4e51484813168b2424de95f498e9 /llvm/include/llvm-c
parenta8a295f2d9a689651fc83bde602c991409a6025d (diff)
downloadbcm5719-llvm-54648d867f727b096e1179337a8b4a2ef075a838.tar.gz
bcm5719-llvm-54648d867f727b096e1179337a8b4a2ef075a838.zip
Fix the LTO header for LLVMContext changes.
llvm-svn: 74663
Diffstat (limited to 'llvm/include/llvm-c')
-rw-r--r--llvm/include/llvm-c/lto.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/include/llvm-c/lto.h b/llvm/include/llvm-c/lto.h
index d9a2e5ce686..49b8bfbde96 100644
--- a/llvm/include/llvm-c/lto.h
+++ b/llvm/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);
/**
OpenPOWER on IntegriCloud