Lines Matching refs:OldGV
572 llvm::GlobalVariable *OldGV = CGM.getModule().getNamedGlobal(Name);
573 if (OldGV && !OldGV->isDeclaration()) {
574 maybeUpdateRTTILinkage(CGM, OldGV, Ty);
576 return llvm::ConstantExpr::getBitCast(OldGV, CGM.Int8PtrTy);
685 if (OldGV) {
686 GV->takeName(OldGV);
688 llvm::ConstantExpr::getBitCast(GV, OldGV->getType());
689 OldGV->replaceAllUsesWith(NewPtr);
690 OldGV->eraseFromParent();