Lines Matching refs:Replacements
109 SmallVector<std::pair<GlobalVariable*, GlobalVariable*>, 32> Replacements; in runOnModule() local
191 Replacements.push_back(std::make_pair(GV, Slot)); in runOnModule()
194 if (Replacements.empty()) in runOnModule()
201 for (unsigned i = 0, e = Replacements.size(); i != e; ++i) { in runOnModule()
203 if (Replacements[i].first->getAlignment() || in runOnModule()
204 Replacements[i].second->getAlignment()) { in runOnModule()
205 Replacements[i].second->setAlignment( in runOnModule()
206 std::max(getAlignment(Replacements[i].first), in runOnModule()
207 getAlignment(Replacements[i].second))); in runOnModule()
211 Replacements[i].first->replaceAllUsesWith(Replacements[i].second); in runOnModule()
214 assert(Replacements[i].first->hasLocalLinkage() && in runOnModule()
216 Replacements[i].first->eraseFromParent(); in runOnModule()
219 NumMerged += Replacements.size(); in runOnModule()
220 Replacements.clear(); in runOnModule()