Searched refs:DGVar (Results 1 – 2 of 2) sorted by relevance
360 auto *DGVar = dyn_cast<GlobalVariable>(DGV); in linkIfNeeded() local362 if (DGVar && SGVar) { in linkIfNeeded()363 if (DGVar->isDeclaration() && SGVar->isDeclaration() && in linkIfNeeded()364 (!DGVar->isConstant() || !SGVar->isConstant())) { in linkIfNeeded()365 DGVar->setConstant(false); in linkIfNeeded()368 if (DGVar->hasCommonLinkage() && SGVar->hasCommonLinkage()) { in linkIfNeeded()369 unsigned Align = std::max(DGVar->getAlignment(), SGVar->getAlignment()); in linkIfNeeded()371 DGVar->setAlignment(Align); in linkIfNeeded()
635 if (GlobalVariable *DGVar = dyn_cast<GlobalVariable>(DGV)) in linkGlobalProto() local636 if (DGVar->isDeclaration() && SGV->isConstant() && !DGVar->isConstant()) in linkGlobalProto()637 DGVar->setConstant(true); in linkGlobalProto()