From 0a4e9a3b25ceac87bede40e6b4f7cae01468a507 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Wed, 1 Oct 2014 17:14:57 +0000 Subject: C API: Add LLVMCloneModule() llvm-svn: 218775 --- llvm/include/llvm-c/Core.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'llvm/include/llvm-c/Core.h') diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h index e5d5f3f99bd..bfbc6322902 100644 --- a/llvm/include/llvm-c/Core.h +++ b/llvm/include/llvm-c/Core.h @@ -560,6 +560,10 @@ LLVMModuleRef LLVMModuleCreateWithName(const char *ModuleID); */ LLVMModuleRef LLVMModuleCreateWithNameInContext(const char *ModuleID, LLVMContextRef C); +/** + * Return an exact copy of the specified module. + */ +LLVMModuleRef LLVMCloneModule(LLVMModuleRef M); /** * Destroy a module instance. -- cgit v1.2.3