can now clone modules
This commit is contained in:
parent
e0d1b94053
commit
d781e83bd1
5 changed files with 64 additions and 0 deletions
|
|
@ -135,6 +135,12 @@ const CodeGenOpt::Level OptLevelMap[] = {
|
|||
};
|
||||
} // end anony namespace
|
||||
|
||||
LLVMModuleRef LLVMCloneModule(LLVMModuleRef mod)
|
||||
{
|
||||
using namespace llvm;
|
||||
return wrap(CloneModule(unwrap(mod)));
|
||||
}
|
||||
|
||||
const char * LLVMDumpNamedMDToString(LLVMNamedMDRef nmd)
|
||||
{
|
||||
using namespace llvm;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue