Lines Matching refs:DstGV
388 bool linkAppendingVarProto(GlobalVariable *DstGV, GlobalVariable *SrcGV);
552 bool ModuleLinker::linkAppendingVarProto(GlobalVariable *DstGV, in linkAppendingVarProto() argument
555 if (!SrcGV->hasAppendingLinkage() || !DstGV->hasAppendingLinkage()) in linkAppendingVarProto()
559 ArrayType *DstTy = cast<ArrayType>(DstGV->getType()->getElementType()); in linkAppendingVarProto()
567 if (DstGV->isConstant() != SrcGV->isConstant()) in linkAppendingVarProto()
570 if (DstGV->getAlignment() != SrcGV->getAlignment()) in linkAppendingVarProto()
574 if (DstGV->getVisibility() != SrcGV->getVisibility()) in linkAppendingVarProto()
578 if (DstGV->getSection() != SrcGV->getSection()) in linkAppendingVarProto()
587 new GlobalVariable(*DstGV->getParent(), NewType, SrcGV->isConstant(), in linkAppendingVarProto()
588 DstGV->getLinkage(), /*init*/0, /*name*/"", DstGV, in linkAppendingVarProto()
589 DstGV->isThreadLocal(), in linkAppendingVarProto()
590 DstGV->getType()->getAddressSpace()); in linkAppendingVarProto()
593 CopyGVAttributes(NG, DstGV); in linkAppendingVarProto()
597 AVI.DstInit = DstGV->getInitializer(); in linkAppendingVarProto()
605 DstGV->replaceAllUsesWith(ConstantExpr::getBitCast(NG, DstGV->getType())); in linkAppendingVarProto()
606 DstGV->eraseFromParent(); in linkAppendingVarProto()