std::vector<Record*> Spellings = Attr.getValueAsListOfDefs("Spellings");
for (std::vector<Record*>::const_iterator I = Spellings.begin(), E = Spellings.end(); I != E; ++I) {
- SmallString<64> Spelling;
- Spelling += (*I)->getValueAsString("Name");
- OS << ".Case(\"" << Spelling << "\", true)\n";
+ OS << ".Case(\"" << (*I)->getValueAsString("Name") << "\", true)\n";
}
}
for (std::vector<Record*>::const_iterator I = Spellings.begin(),
E = Spellings.end(); I != E; ++I) {
- SmallString<64> AttrName;
- AttrName += (*I)->getValueAsString("Name");
+ std::string AttrName = (*I)->getValueAsString("Name");
StringRef Spelling = NormalizeAttrName(AttrName);
for (std::vector<Record*>::const_iterator I = Spellings.begin(),
E = Spellings.end(); I != E; ++I) {
- SmallString<64> RawSpelling;
- RawSpelling += (*I)->getValueAsString("Name");
+ std::string RawSpelling = (*I)->getValueAsString("Name");
StringRef AttrName = NormalizeAttrName(DistinctSpellings
? StringRef(RawSpelling)
: StringRef(Attr.getName()));