Lines Matching refs:Dest
56 bool shouldLinkFromSource(bool &LinkFromSrc, const GlobalValue &Dest,
242 const GlobalValue &Dest, in shouldLinkFromSource() argument
258 bool DestIsDeclaration = Dest.isDeclarationForLinker(); in shouldLinkFromSource()
269 if (Dest.hasExternalWeakLinkage()) { in shouldLinkFromSource()
274 LinkFromSrc = !Src.isDeclaration() && Dest.isDeclaration(); in shouldLinkFromSource()
285 if (Dest.hasLinkOnceLinkage() || Dest.hasWeakLinkage()) { in shouldLinkFromSource()
290 if (!Dest.hasCommonLinkage()) { in shouldLinkFromSource()
295 const DataLayout &DL = Dest.getParent()->getDataLayout(); in shouldLinkFromSource()
296 uint64_t DestSize = DL.getTypeAllocSize(Dest.getValueType()); in shouldLinkFromSource()
303 assert(!Dest.hasExternalWeakLinkage()); in shouldLinkFromSource()
304 assert(!Dest.hasAvailableExternallyLinkage()); in shouldLinkFromSource()
306 if (Dest.hasLinkOnceLinkage() && Src.hasWeakLinkage()) { in shouldLinkFromSource()
315 if (Dest.isWeakForLinker()) { in shouldLinkFromSource()
322 assert(!Dest.hasExternalWeakLinkage()); in shouldLinkFromSource()
323 assert(Dest.hasExternalLinkage() && Src.hasExternalLinkage() && in shouldLinkFromSource()
592 Module &Dest, std::unique_ptr<Module> Src, unsigned Flags, in linkModules() argument
594 Linker L(Dest); in linkModules()
602 LLVMBool LLVMLinkModules2(LLVMModuleRef Dest, LLVMModuleRef Src) { in LLVMLinkModules2() argument
603 Module *D = unwrap(Dest); in LLVMLinkModules2()