Lines Matching refs:GO
534 auto *GO = dyn_cast<GlobalObject>(V); in materializeValueFor() local
535 if (!GO) in materializeValueFor()
538 auto I = LocalVersions.find(GO); in materializeValueFor()
542 if (!Dropped.count(GO)) in materializeValueFor()
545 Module &M = *GO->getParent(); in materializeValueFor()
546 GlobalValue::LinkageTypes L = GO->getLinkage(); in materializeValueFor()
548 if (auto *F = dyn_cast<Function>(GO)) { in materializeValueFor()
551 auto *Var = cast<GlobalVariable>(GO); in materializeValueFor()
556 Declaration->takeName(GO); in materializeValueFor()
557 Declaration->copyAttributesFrom(GO); in materializeValueFor()
559 GO->setLinkage(GlobalValue::InternalLinkage); in materializeValueFor()
560 GO->setName(Declaration->getName()); in materializeValueFor()
561 Dropped.erase(GO); in materializeValueFor()
562 GO->replaceAllUsesWith(Declaration); in materializeValueFor()
564 LocalVersions[Declaration] = GO; in materializeValueFor()
566 return GO; in materializeValueFor()