can now clone modules

This commit is contained in:
Siu Kwan Lam 2012-10-19 16:18:24 -05:00
commit d781e83bd1
5 changed files with 64 additions and 0 deletions

View file

@ -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;