Lines Matching defs:OldName
2760 StringRef OldName = OldPtr->getName();
2762 size_t LastSROAPrefix = OldName.rfind(".sroa.");
2764 OldName = OldName.substr(LastSROAPrefix + strlen(".sroa."));
2766 size_t IndexEnd = OldName.find_first_not_of("0123456789");
2767 if (IndexEnd != StringRef::npos && OldName[IndexEnd] == '.') {
2769 OldName = OldName.substr(IndexEnd + 1);
2770 size_t OffsetEnd = OldName.find_first_not_of("0123456789");
2771 if (OffsetEnd != StringRef::npos && OldName[OffsetEnd] == '.')
2773 OldName = OldName.substr(OffsetEnd + 1);
2777 OldName = OldName.substr(0, OldName.find(".sroa_"));
2784 Twine(OldName) + "."