Home
last modified time | relevance | path

Searched refs:OldGV (Results 1 – 3 of 3) sorted by relevance

/external/clang/lib/CodeGen/
DCGDecl.cpp316 llvm::GlobalVariable *OldGV = GV; in AddInitializerToStaticVarDecl() local
319 OldGV->isConstant(), in AddInitializerToStaticVarDecl()
320 OldGV->getLinkage(), Init, "", in AddInitializerToStaticVarDecl()
321 /*InsertBefore*/ OldGV, in AddInitializerToStaticVarDecl()
322 OldGV->getThreadLocalMode(), in AddInitializerToStaticVarDecl()
324 GV->setVisibility(OldGV->getVisibility()); in AddInitializerToStaticVarDecl()
325 GV->setComdat(OldGV->getComdat()); in AddInitializerToStaticVarDecl()
328 GV->takeName(OldGV); in AddInitializerToStaticVarDecl()
332 llvm::ConstantExpr::getBitCast(GV, OldGV->getType()); in AddInitializerToStaticVarDecl()
333 OldGV->replaceAllUsesWith(NewPtrForOldDecl); in AddInitializerToStaticVarDecl()
[all …]
DItaniumCXXABI.cpp2904 llvm::GlobalVariable *OldGV = CGM.getModule().getNamedGlobal(Name); in BuildTypeInfo() local
2905 if (OldGV && !OldGV->isDeclaration()) { in BuildTypeInfo()
2906 assert(!OldGV->hasAvailableExternallyLinkage() && in BuildTypeInfo()
2909 return llvm::ConstantExpr::getBitCast(OldGV, CGM.Int8PtrTy); in BuildTypeInfo()
3042 if (OldGV) { in BuildTypeInfo()
3043 GV->takeName(OldGV); in BuildTypeInfo()
3045 llvm::ConstantExpr::getBitCast(GV, OldGV->getType()); in BuildTypeInfo()
3046 OldGV->replaceAllUsesWith(NewPtr); in BuildTypeInfo()
3047 OldGV->eraseFromParent(); in BuildTypeInfo()
DCodeGenModule.cpp2212 llvm::GlobalVariable *OldGV = nullptr; in CreateOrReplaceCXXRuntimeVariable() local
2222 OldGV = GV; in CreateOrReplaceCXXRuntimeVariable()
2229 if (OldGV) { in CreateOrReplaceCXXRuntimeVariable()
2231 GV->takeName(OldGV); in CreateOrReplaceCXXRuntimeVariable()
2233 if (!OldGV->use_empty()) { in CreateOrReplaceCXXRuntimeVariable()
2235 llvm::ConstantExpr::getBitCast(GV, OldGV->getType()); in CreateOrReplaceCXXRuntimeVariable()
2236 OldGV->replaceAllUsesWith(NewPtrForOldDecl); in CreateOrReplaceCXXRuntimeVariable()
2239 OldGV->eraseFromParent(); in CreateOrReplaceCXXRuntimeVariable()