Lines Matching refs:OldName
2295 StringRef OldName = OldPtr->getName();
2297 size_t LastSROAPrefix = OldName.rfind(".sroa.");
2299 OldName = OldName.substr(LastSROAPrefix + strlen(".sroa."));
2301 size_t IndexEnd = OldName.find_first_not_of("0123456789");
2302 if (IndexEnd != StringRef::npos && OldName[IndexEnd] == '.') {
2304 OldName = OldName.substr(IndexEnd + 1);
2305 size_t OffsetEnd = OldName.find_first_not_of("0123456789");
2306 if (OffsetEnd != StringRef::npos && OldName[OffsetEnd] == '.')
2308 OldName = OldName.substr(OffsetEnd + 1);
2312 OldName = OldName.substr(0, OldName.find(".sroa_"));
2318 Twine(OldName) + "."