OS << "#ifdef GET_ATTR_ENUM\n";
OS << "#undef GET_ATTR_ENUM\n";
- const std::vector<Record*> &Attrs =
+ std::vector<Record*> Attrs =
Records.getAllDerivedDefinitions("EnumAttr");
for (auto A : Attrs)
Records.getAllDerivedDefinitions("CompatRule");
for (auto *Rule : CompatRules) {
- StringRef FuncName = Rule->getValueAsString("CompatFunc");
+ std::string FuncName = Rule->getValueAsString("CompatFunc");
OS << " Ret &= " << FuncName << "(Caller, Callee);\n";
}
<< " const Function &Callee) {\n";
for (auto *Rule : MergeRules) {
- StringRef FuncName = Rule->getValueAsString("MergeFunc");
+ std::string FuncName = Rule->getValueAsString("MergeFunc");
OS << " " << FuncName << "(Caller, Callee);\n";
}