Lines Matching refs:DstM
321 Module *DstM, *SrcM; member in __anon362dfdd90211::ModuleLinker
348 : DstM(dstM), SrcM(srcM), Mode(mode) { } in ModuleLinker()
374 GlobalValue *DGV = DstM->getNamedValue(SrcGV->getName()); in getLinkedToGlobal()
657 new GlobalVariable(*DstM, TypeMap.get(SGV->getType()->getElementType()), in linkGlobalProto()
704 SF->getLinkage(), SF->getName(), DstM); in linkFunctionProto()
746 /*aliasee*/0, DstM); in linkAliasProto()
864 NamedMDNode *DestNMD = DstM->getOrInsertNamedMetadata(I->getName()); in linkNamedMDNodes()
873 assert(DstM && "Null Destination module"); in run()
878 if (DstM->getDataLayout().empty() && !SrcM->getDataLayout().empty()) in run()
879 DstM->setDataLayout(SrcM->getDataLayout()); in run()
882 if (DstM->getTargetTriple().empty() && !SrcM->getTargetTriple().empty()) in run()
883 DstM->setTargetTriple(SrcM->getTargetTriple()); in run()
885 if (!SrcM->getDataLayout().empty() && !DstM->getDataLayout().empty() && in run()
886 SrcM->getDataLayout() != DstM->getDataLayout()) in run()
889 DstM->getTargetTriple() != SrcM->getTargetTriple()) { in run()
894 << DstM->getTargetTriple() << "'\n"; in run()
899 if (DstM->getModuleInlineAsm().empty()) in run()
900 DstM->setModuleInlineAsm(SrcM->getModuleInlineAsm()); in run()
902 DstM->setModuleInlineAsm(DstM->getModuleInlineAsm()+"\n"+ in run()
911 DstM->addLibrary(*SI); in run()
917 DstM->removeLibrary(sys::path::stem(ModuleId)); in run()