Searched refs:OldGV (Results 1 - 5 of 5) sorted by relevance

/freebsd-13-stable/contrib/llvm-project/llvm/lib/LTO/
H A DLTO.cpp1011 GlobalVariable *OldGV = RegularLTO.CombinedModule->getNamedGlobal(I.first); local
1012 if (OldGV && DL.getTypeAllocSize(OldGV->getValueType()) == I.second.Size) {
1015 OldGV->setAlignment(I.second.Align);
1024 if (OldGV) {
1025 OldGV->replaceAllUsesWith(ConstantExpr::getBitCast(GV, OldGV->getType()));
1026 GV->takeName(OldGV);
1027 OldGV->eraseFromParent();
/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDecl.cpp346 llvm::GlobalVariable *OldGV = GV; local
349 OldGV->isConstant(),
350 OldGV->getLinkage(), Init, "",
351 /*InsertBefore*/ OldGV,
352 OldGV->getThreadLocalMode(),
354 GV->setVisibility(OldGV->getVisibility());
355 GV->setDSOLocal(OldGV->isDSOLocal());
356 GV->setComdat(OldGV->getComdat());
359 GV->takeName(OldGV);
363 llvm::ConstantExpr::getBitCast(GV, OldGV
[all...]
H A DItaniumCXXABI.cpp3485 llvm::GlobalVariable *OldGV = CGM.getModule().getNamedGlobal(Name); local
3486 if (OldGV && !OldGV->isDeclaration()) {
3487 assert(!OldGV->hasAvailableExternallyLinkage() &&
3490 return llvm::ConstantExpr::getBitCast(OldGV, CGM.Int8PtrTy);
3650 llvm::GlobalVariable *OldGV = M.getNamedGlobal(Name); local
3656 if (OldGV) {
3657 GV->takeName(OldGV);
3659 llvm::ConstantExpr::getBitCast(GV, OldGV->getType());
3660 OldGV
[all...]
H A DCGObjCGNU.cpp1367 auto *OldGV = TheModule.getGlobalVariable(SymName); variable
1376 assert(!OldGV);
1423 if (OldGV) {
1424 OldGV->replaceAllUsesWith(llvm::ConstantExpr::getBitCast(GV,
1425 OldGV->getType()));
1426 OldGV->removeFromParent();
H A DCodeGenModule.cpp3680 llvm::GlobalVariable *OldGV = nullptr; local
3690 OldGV = GV;
3697 if (OldGV) {
3699 GV->takeName(OldGV);
3701 if (!OldGV->use_empty()) {
3703 llvm::ConstantExpr::getBitCast(GV, OldGV->getType());
3704 OldGV->replaceAllUsesWith(NewPtrForOldDecl);
3707 OldGV->eraseFromParent();
4018 // We must make a new GlobalVariable* and update everything that used OldGV

Completed in 192 milliseconds