summaryrefslogtreecommitdiff
path: root/include/llvm-c
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-02 00:31:14 +0000
committerOwen Anderson <resistor@mac.com>2009-07-02 00:31:14 +0000
commit0e7a54672cf346ee7c4aae10822c74f7c74f3fed (patch)
tree69c161120ebf5ea3e8f5d7a20a26ca90cc78b193 /include/llvm-c
parent6d8f1263f40e6b8fc2cd5cce3dfd9ce99fe09226 (diff)
downloadllvm-0e7a54672cf346ee7c4aae10822c74f7c74f3fed.tar.gz
llvm-0e7a54672cf346ee7c4aae10822c74f7c74f3fed.tar.bz2
llvm-0e7a54672cf346ee7c4aae10822c74f7c74f3fed.tar.xz
Maintain the old LTO API, by using the global context.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74678 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm-c')
-rw-r--r--include/llvm-c/lto.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/include/llvm-c/lto.h b/include/llvm-c/lto.h
index 49b8bfbde9..1ae8c670dd 100644
--- a/include/llvm-c/lto.h
+++ b/include/llvm-c/lto.h
@@ -59,8 +59,6 @@ typedef struct LTOModule* lto_module_t;
/** opaque reference to a code generator */
typedef struct LTOCodeGenerator* lto_code_gen_t;
-typedef struct LTOContext* lto_context_t;
-
#ifdef __cplusplus
extern "C" {
#endif
@@ -113,7 +111,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, LLVMContextRef Ctxt);
+lto_module_create(const char* path);
/**
@@ -121,8 +119,7 @@ lto_module_create(const char* path, LLVMContextRef Ctxt);
* 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,
- LLVMContextRef Ctxt);
+lto_module_create_from_memory(const void* mem, size_t length);
/**
@@ -166,7 +163,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(LLVMContextRef Ctxt);
+lto_codegen_create(void);
/**