Home | History | Annotate | Download | only in Utils

Lines Matching refs:New

28   // Create the value map that maps things from the old module over to the new
35 // First off, we need to create the new module.
36 Module *New = new Module(M->getModuleIdentifier(), M->getContext());
37 New->setDataLayout(M->getDataLayout());
38 New->setTargetTriple(M->getTargetTriple());
39 New->setModuleInlineAsm(M->getModuleInlineAsm());
43 New->addLibrary(*I);
46 // new module. Here we add them to the VMap and to the new Module. We
51 GlobalVariable *GV = new GlobalVariable(*New,
66 I->getLinkage(), I->getName(), New);
74 GlobalAlias *GA = new GlobalAlias(I->getType(), I->getLinkage(),
75 I->getName(), NULL, New);
120 NamedMDNode *NewNMD = New->getOrInsertNamedMetadata(NMD.getName());
125 return New;