diff options
Diffstat (limited to 'llvm/utils')
| -rw-r--r-- | llvm/utils/TableGen/SubtargetEmitter.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/utils/TableGen/SubtargetEmitter.cpp b/llvm/utils/TableGen/SubtargetEmitter.cpp index 792c957ea19..92b85d88235 100644 --- a/llvm/utils/TableGen/SubtargetEmitter.cpp +++ b/llvm/utils/TableGen/SubtargetEmitter.cpp @@ -203,7 +203,7 @@ unsigned SubtargetEmitter::FeatureKeyValues(raw_ostream &OS) { OS << " { " << "\"" << CommandLineName << "\", " << "\"" << Desc << "\", " - << "{ " << Target << "::" << Name << " }, "; + << Target << "::" << Name << ", "; RecVec ImpliesList = Feature->getValueAsListOfDefs("Implies"); @@ -242,18 +242,18 @@ unsigned SubtargetEmitter::CPUKeyValues(raw_ostream &OS) { StringRef Name = Processor->getValueAsString("Name"); RecVec FeatureList = Processor->getValueAsListOfDefs("Features"); - // Emit as { "cpu", "description", { f1 , f2 , ... fn } }, - OS << " { " + // Emit as { "cpu", "description", 0, { f1 , f2 , ... fn } }, + // The 0 is for the feature id which isn't used for CPUs. + OS << " { " << "\"" << Name << "\", " - << "\"Select the " << Name << " processor\", "; + << "\"Select the " << Name << " processor\", 0, "; OS << "{"; for (unsigned j = 0, M = FeatureList.size(); j < M;) { OS << " " << Target << "::" << FeatureList[j]->getName(); if (++j < M) OS << ","; } - // The { } is for the "implies" section of this data structure. - OS << " }, { } },\n"; + OS << " } },\n"; } // End processor table |

