Lines Matching defs:Dest
56 bool shouldLinkFromSource(bool &LinkFromSrc, const GlobalValue &Dest,
241 const GlobalValue &Dest,
251 if (Src.hasAppendingLinkage() || Dest.hasAppendingLinkage()) {
257 bool DestIsDeclaration = Dest.isDeclarationForLinker();
260 // If Src is external or if both Src & Dest are external.. Just link the
267 // If the Dest is weak, use the source linkage.
268 if (Dest.hasExternalWeakLinkage()) {
273 LinkFromSrc = !Src.isDeclaration() && Dest.isDeclaration();
278 // If Dest is external but Src is not:
284 if (Dest.hasLinkOnceLinkage() || Dest.hasWeakLinkage()) {
289 if (!Dest.hasCommonLinkage()) {
294 const DataLayout &DL = Dest.getDataLayout();
295 uint64_t DestSize = DL.getTypeAllocSize(Dest.getValueType());
302 assert(!Dest.hasExternalWeakLinkage());
303 assert(!Dest.hasAvailableExternallyLinkage());
305 if (Dest.hasLinkOnceLinkage() && Src.hasWeakLinkage()) {
314 if (Dest.isWeakForLinker()) {
321 assert(!Dest.hasExternalWeakLinkage());
322 assert(Dest.hasExternalLinkage() && Src.hasExternalLinkage() &&
635 /// This function links two modules together, with the resulting Dest module
638 /// Upon failure, the Dest module could be in a modified state, and shouldn't be
641 Module &Dest, std::unique_ptr<Module> Src, unsigned Flags,
643 Linker L(Dest);
651 LLVMBool LLVMLinkModules2(LLVMModuleRef Dest, LLVMModuleRef Src) {
652 Module *D = unwrap(Dest);