commit | 0a4e9a3b25ceac87bede40e6b4f7cae01468a507 | [log] [tgz] |
---|---|---|
author | Tom Stellard <thomas.stellard@amd.com> | Wed Oct 01 17:14:57 2014 +0000 |
committer | Tom Stellard <thomas.stellard@amd.com> | Wed Oct 01 17:14:57 2014 +0000 |
tree | 9e5f8297fce30a8c444fb83b6860b6d0e99ebc80 | |
parent | 5afc869f9677210c0a2c2ff8239e3a386cd7db26 [diff] [blame] |
C API: Add LLVMCloneModule() llvm-svn: 218775
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h index e5d5f3f..bfbc632 100644 --- a/llvm/include/llvm-c/Core.h +++ b/llvm/include/llvm-c/Core.h
@@ -560,6 +560,10 @@ */ LLVMModuleRef LLVMModuleCreateWithNameInContext(const char *ModuleID, LLVMContextRef C); +/** + * Return an exact copy of the specified module. + */ +LLVMModuleRef LLVMCloneModule(LLVMModuleRef M); /** * Destroy a module instance.