mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 03:24:09 +00:00
C API: Add LLVMCloneModule()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218775 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -17,6 +17,7 @@
|
||||
#include "llvm/IR/DerivedTypes.h"
|
||||
#include "llvm/IR/Module.h"
|
||||
#include "llvm/Transforms/Utils/ValueMapper.h"
|
||||
#include "llvm-c/Core.h"
|
||||
using namespace llvm;
|
||||
|
||||
/// CloneModule - Return an exact copy of the specified module. This is not as
|
||||
@ -122,3 +123,11 @@ Module *llvm::CloneModule(const Module *M, ValueToValueMapTy &VMap) {
|
||||
|
||||
return New;
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
|
||||
LLVMModuleRef LLVMCloneModule(LLVMModuleRef M) {
|
||||
return wrap(CloneModule(unwrap(M)));
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user