Lines Matching refs:Dest
58 bool shouldLinkFromSource(bool &LinkFromSrc, const GlobalValue &Dest,
258 const GlobalValue &Dest, in shouldLinkFromSource() argument
282 bool DestIsDeclaration = Dest.isDeclarationForLinker(); in shouldLinkFromSource()
293 if (Dest.hasExternalWeakLinkage()) { in shouldLinkFromSource()
298 LinkFromSrc = !Src.isDeclaration() && Dest.isDeclaration(); in shouldLinkFromSource()
309 if (Dest.hasLinkOnceLinkage() || Dest.hasWeakLinkage()) { in shouldLinkFromSource()
314 if (!Dest.hasCommonLinkage()) { in shouldLinkFromSource()
319 const DataLayout &DL = Dest.getParent()->getDataLayout(); in shouldLinkFromSource()
320 uint64_t DestSize = DL.getTypeAllocSize(Dest.getValueType()); in shouldLinkFromSource()
327 assert(!Dest.hasExternalWeakLinkage()); in shouldLinkFromSource()
328 assert(!Dest.hasAvailableExternallyLinkage()); in shouldLinkFromSource()
330 if (Dest.hasLinkOnceLinkage() && Src.hasWeakLinkage()) { in shouldLinkFromSource()
339 if (Dest.isWeakForLinker()) { in shouldLinkFromSource()
346 assert(!Dest.hasExternalWeakLinkage()); in shouldLinkFromSource()
347 assert(Dest.hasExternalLinkage() && Src.hasExternalLinkage() && in shouldLinkFromSource()
619 bool Linker::linkModules(Module &Dest, std::unique_ptr<Module> Src, in linkModules() argument
621 Linker L(Dest); in linkModules()
629 LLVMBool LLVMLinkModules2(LLVMModuleRef Dest, LLVMModuleRef Src) { in LLVMLinkModules2() argument
630 Module *D = unwrap(Dest); in LLVMLinkModules2()