Lines Matching refs:OldGV
258 llvm::GlobalVariable *OldGV = GV;
261 OldGV->isConstant(),
262 OldGV->getLinkage(), Init, "",
263 /*InsertBefore*/ OldGV,
264 OldGV->getThreadLocalMode(),
266 GV->setVisibility(OldGV->getVisibility());
269 GV->takeName(OldGV);
273 llvm::ConstantExpr::getBitCast(GV, OldGV->getType());
274 OldGV->replaceAllUsesWith(NewPtrForOldDecl);
277 OldGV->eraseFromParent();