Searched refs:DGVar (Results 1 – 3 of 3) sorted by relevance
346 auto *DGVar = dyn_cast<GlobalVariable>(DGV); in linkIfNeeded() local348 if (DGVar && SGVar) { in linkIfNeeded()349 if (DGVar->isDeclaration() && SGVar->isDeclaration() && in linkIfNeeded()350 (!DGVar->isConstant() || !SGVar->isConstant())) { in linkIfNeeded()351 DGVar->setConstant(false); in linkIfNeeded()354 if (DGVar->hasCommonLinkage() && SGVar->hasCommonLinkage()) { in linkIfNeeded()355 unsigned Align = std::max(DGVar->getAlignment(), SGVar->getAlignment()); in linkIfNeeded()357 DGVar->setAlignment(Align); in linkIfNeeded()
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()