Searched refs:OldGV (Results 1 – 3 of 3) sorted by relevance
/external/clang/lib/CodeGen/ |
D | CGDecl.cpp | 307 llvm::GlobalVariable *OldGV = GV; in AddInitializerToStaticVarDecl() local 310 OldGV->isConstant(), in AddInitializerToStaticVarDecl() 311 OldGV->getLinkage(), Init, "", in AddInitializerToStaticVarDecl() 312 /*InsertBefore*/ OldGV, in AddInitializerToStaticVarDecl() 313 OldGV->getThreadLocalMode(), in AddInitializerToStaticVarDecl() 315 GV->setVisibility(OldGV->getVisibility()); in AddInitializerToStaticVarDecl() 316 GV->setComdat(OldGV->getComdat()); in AddInitializerToStaticVarDecl() 319 GV->takeName(OldGV); in AddInitializerToStaticVarDecl() 323 llvm::ConstantExpr::getBitCast(GV, OldGV->getType()); in AddInitializerToStaticVarDecl() 324 OldGV->replaceAllUsesWith(NewPtrForOldDecl); in AddInitializerToStaticVarDecl() [all …]
|
D | ItaniumCXXABI.cpp | 2871 llvm::GlobalVariable *OldGV = CGM.getModule().getNamedGlobal(Name); in BuildTypeInfo() local 2872 if (OldGV && !OldGV->isDeclaration()) { in BuildTypeInfo() 2873 assert(!OldGV->hasAvailableExternallyLinkage() && in BuildTypeInfo() 2876 return llvm::ConstantExpr::getBitCast(OldGV, CGM.Int8PtrTy); in BuildTypeInfo() 3006 if (OldGV) { in BuildTypeInfo() 3007 GV->takeName(OldGV); in BuildTypeInfo() 3009 llvm::ConstantExpr::getBitCast(GV, OldGV->getType()); in BuildTypeInfo() 3010 OldGV->replaceAllUsesWith(NewPtr); in BuildTypeInfo() 3011 OldGV->eraseFromParent(); in BuildTypeInfo()
|
D | CodeGenModule.cpp | 2074 llvm::GlobalVariable *OldGV = nullptr; in CreateOrReplaceCXXRuntimeVariable() local 2084 OldGV = GV; in CreateOrReplaceCXXRuntimeVariable() 2091 if (OldGV) { in CreateOrReplaceCXXRuntimeVariable() 2093 GV->takeName(OldGV); in CreateOrReplaceCXXRuntimeVariable() 2095 if (!OldGV->use_empty()) { in CreateOrReplaceCXXRuntimeVariable() 2097 llvm::ConstantExpr::getBitCast(GV, OldGV->getType()); in CreateOrReplaceCXXRuntimeVariable() 2098 OldGV->replaceAllUsesWith(NewPtrForOldDecl); in CreateOrReplaceCXXRuntimeVariable() 2101 OldGV->eraseFromParent(); in CreateOrReplaceCXXRuntimeVariable()
|