Lines Matching defs:Dest

395     bool getLinkageResult(GlobalValue *Dest, const GlobalValue *Src,
494 bool ModuleLinker::getLinkageResult(GlobalValue *Dest, const GlobalValue *Src,
498 assert(Dest && "Must have two globals being queried");
500 "If Src has internal linkage, Dest shouldn't be set!");
503 bool DestIsDeclaration = Dest->isDeclaration();
506 // If Src is external or if both Src & Dest are external.. Just link the
514 } else if (Dest->hasExternalWeakLinkage()) {
515 // If the Dest is weak, use the source linkage.
520 LT = Dest->getLinkage();
522 } else if (DestIsDeclaration && !Dest->hasDLLImportLinkage()) {
523 // If Dest is external but Src is not:
527 // At this point we know that Dest has LinkOnce, External*, Weak, Common,
529 if (Dest->hasExternalWeakLinkage() ||
530 Dest->hasAvailableExternallyLinkage() ||
531 (Dest->hasLinkOnceLinkage() &&
537 LT = Dest->getLinkage();
539 } else if (Dest->isWeakForLinker()) {
543 LT = Dest->getLinkage();
549 assert((Dest->hasExternalLinkage() || Dest->hasDLLImportLinkage() ||
550 Dest->hasDLLExportLinkage() || Dest->hasExternalWeakLinkage()) &&
560 Vis = isLessConstraining(Src->getVisibility(), Dest->getVisibility()) ?
561 Dest->getVisibility() : Src->getVisibility();
881 static void getArrayElements(Constant *C, SmallVectorImpl<Constant*> &Dest) {
885 Dest.push_back(C->getAggregateElement(i));
900 /// linkGlobalInits - Update the initializers in the Dest module now that all
901 /// globals that may be referenced are in Dest.
919 /// fix up references to values. At this point we know that Dest is an external
959 /// linkAliasBodies - Insert all of the aliases in Src into the Dest module.
972 /// linkNamedMDNodes - Insert all of the named MDNodes in Src into the Dest
981 // Add Src elements into Dest node.
1048 /// linkModuleFlagsMetadata - Merge the linker flags in Src into the Dest
1326 /// the problem. Upon failure, the Dest module could be in a modified state,
1328 bool Linker::LinkModules(Module *Dest, Module *Src, unsigned Mode,
1330 ModuleLinker TheLinker(Dest, Src, Mode);