Lines Matching refs:DST
468 void linkGlobalInit(GlobalVariable &Dst, GlobalVariable &Src);
469 Error linkFunctionBody(Function &Dst, Function &Src);
470 void linkAliasBody(GlobalAlias &Dst, GlobalAlias &Src);
471 Error linkGlobalValueBody(GlobalValue &Dst, GlobalValue &Src);
705 StructType *DST = DstM.getTypeByName(ST->getName().substr(0, DotPos));
706 if (!DST)
726 if (TypeMap.DstStructTypesSet.hasType(DST))
727 TypeMap.addTypeMapping(DST, ST);
946 void IRLinker::linkGlobalInit(GlobalVariable &Dst, GlobalVariable &Src) {
948 Mapper.scheduleMapGlobalInitializer(Dst, *Src.getInitializer());
954 Error IRLinker::linkFunctionBody(Function &Dst, Function &Src) {
955 assert(Dst.isDeclaration() && !Src.isDeclaration());
963 Dst.setPrefixData(Src.getPrefixData());
965 Dst.setPrologueData(Src.getPrologueData());
967 Dst.setPersonalityFn(Src.getPersonalityFn());
970 Dst.copyMetadata(&Src, 0);
972 // Steal arguments and splice the body of Src into Dst.
973 Dst.stealArgumentListFrom(Src);
974 Dst.getBasicBlockList().splice(Dst.end(), Src.getBasicBlockList());
977 Mapper.scheduleRemapFunction(Dst);
981 void IRLinker::linkAliasBody(GlobalAlias &Dst, GlobalAlias &Src) {
982 Mapper.scheduleMapGlobalAliasee(Dst, *Src.getAliasee(), AliasMCID);
985 Error IRLinker::linkGlobalValueBody(GlobalValue &Dst, GlobalValue &Src) {
987 return linkFunctionBody(cast<Function>(Dst), *F);
989 linkGlobalInit(cast<GlobalVariable>(Dst), *GVar);
992 linkAliasBody(cast<GlobalAlias>(Dst), cast<GlobalAlias>(Src));