Lines Matching defs:OldName
2782 StringRef OldName = OldPtr->getName();
2784 size_t LastSROAPrefix = OldName.rfind(".sroa.");
2786 OldName = OldName.substr(LastSROAPrefix + strlen(".sroa."));
2788 size_t IndexEnd = OldName.find_first_not_of("0123456789");
2789 if (IndexEnd != StringRef::npos && OldName[IndexEnd] == '.') {
2791 OldName = OldName.substr(IndexEnd + 1);
2792 size_t OffsetEnd = OldName.find_first_not_of("0123456789");
2793 if (OffsetEnd != StringRef::npos && OldName[OffsetEnd] == '.')
2795 OldName = OldName.substr(OffsetEnd + 1);
2799 OldName = OldName.substr(0, OldName.find(".sroa_"));
2806 Twine(OldName) + "."