Lines Matching refs:DstGV
455 Expected<Constant *> linkAppendingVarProto(GlobalVariable *DstGV,
745 IRLinker::linkAppendingVarProto(GlobalVariable *DstGV, in linkAppendingVarProto() argument
772 if (DstGV) { in linkAppendingVarProto()
773 ArrayType *DstTy = cast<ArrayType>(DstGV->getValueType()); in linkAppendingVarProto()
776 if (!SrcGV->hasAppendingLinkage() || !DstGV->hasAppendingLinkage()) in linkAppendingVarProto()
785 if (DstGV->isConstant() != SrcGV->isConstant()) in linkAppendingVarProto()
788 if (DstGV->getAlignment() != SrcGV->getAlignment()) in linkAppendingVarProto()
792 if (DstGV->getVisibility() != SrcGV->getVisibility()) in linkAppendingVarProto()
796 if (DstGV->hasGlobalUnnamedAddr() != SrcGV->hasGlobalUnnamedAddr()) in linkAppendingVarProto()
800 if (DstGV->getSection() != SrcGV->getSection()) in linkAppendingVarProto()
826 /*init*/ nullptr, /*name*/ "", DstGV, SrcGV->getThreadLocalMode(), in linkAppendingVarProto()
835 DstGV ? DstGV->getInitializer() : nullptr, in linkAppendingVarProto()
840 if (DstGV) { in linkAppendingVarProto()
841 DstGV->replaceAllUsesWith(ConstantExpr::getBitCast(NG, DstGV->getType())); in linkAppendingVarProto()
842 DstGV->eraseFromParent(); in linkAppendingVarProto()