#ifndef LTO_H
#define LTO_H 1
+#include "llvm-c/Core.h"
#include <stdbool.h>
#include <stddef.h>
* 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);
/**
* 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);
/**
* 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);
/**