Searched refs:OldGV (Results 1 – 3 of 3) sorted by relevance
/external/clang/lib/CodeGen/ |
D | CGDecl.cpp | 258 llvm::GlobalVariable *OldGV = GV; in AddInitializerToStaticVarDecl() local 261 OldGV->isConstant(), in AddInitializerToStaticVarDecl() 262 OldGV->getLinkage(), Init, "", in AddInitializerToStaticVarDecl() 263 /*InsertBefore*/ OldGV, in AddInitializerToStaticVarDecl() 264 OldGV->getThreadLocalMode(), in AddInitializerToStaticVarDecl() 266 GV->setVisibility(OldGV->getVisibility()); in AddInitializerToStaticVarDecl() 269 GV->takeName(OldGV); in AddInitializerToStaticVarDecl() 273 llvm::ConstantExpr::getBitCast(GV, OldGV->getType()); in AddInitializerToStaticVarDecl() 274 OldGV->replaceAllUsesWith(NewPtrForOldDecl); in AddInitializerToStaticVarDecl() 277 OldGV->eraseFromParent(); in AddInitializerToStaticVarDecl()
|
D | ItaniumCXXABI.cpp | 2483 llvm::GlobalVariable *OldGV = CGM.getModule().getNamedGlobal(Name); in BuildTypeInfo() local 2484 if (OldGV && !OldGV->isDeclaration()) { in BuildTypeInfo() 2485 assert(!OldGV->hasAvailableExternallyLinkage() && in BuildTypeInfo() 2488 return llvm::ConstantExpr::getBitCast(OldGV, CGM.Int8PtrTy); in BuildTypeInfo() 2617 if (OldGV) { in BuildTypeInfo() 2618 GV->takeName(OldGV); in BuildTypeInfo() 2620 llvm::ConstantExpr::getBitCast(GV, OldGV->getType()); in BuildTypeInfo() 2621 OldGV->replaceAllUsesWith(NewPtr); in BuildTypeInfo() 2622 OldGV->eraseFromParent(); in BuildTypeInfo()
|
D | CodeGenModule.cpp | 1693 llvm::GlobalVariable *OldGV = nullptr; in CreateOrReplaceCXXRuntimeVariable() local 1703 OldGV = GV; in CreateOrReplaceCXXRuntimeVariable() 1710 if (OldGV) { in CreateOrReplaceCXXRuntimeVariable() 1712 GV->takeName(OldGV); in CreateOrReplaceCXXRuntimeVariable() 1714 if (!OldGV->use_empty()) { in CreateOrReplaceCXXRuntimeVariable() 1716 llvm::ConstantExpr::getBitCast(GV, OldGV->getType()); in CreateOrReplaceCXXRuntimeVariable() 1717 OldGV->replaceAllUsesWith(NewPtrForOldDecl); in CreateOrReplaceCXXRuntimeVariable() 1720 OldGV->eraseFromParent(); in CreateOrReplaceCXXRuntimeVariable()
|