Home
last modified time | relevance | path

Searched refs:DGVar (Results 1 – 2 of 2) sorted by relevance

/external/llvm/lib/Linker/
DLinkModules.cpp360 auto *DGVar = dyn_cast<GlobalVariable>(DGV); in linkIfNeeded() local
362 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()
/external/swiftshader/third_party/LLVM/lib/Linker/
DLinkModules.cpp635 if (GlobalVariable *DGVar = dyn_cast<GlobalVariable>(DGV)) in linkGlobalProto() local
636 if (DGVar->isDeclaration() && SGV->isConstant() && !DGVar->isConstant()) in linkGlobalProto()
637 DGVar->setConstant(true); in linkGlobalProto()