bool LLVMTableGenMain(raw_ostream &OS, RecordKeeper &Records) {
switch (Action) {
case PrintRecords:
- OS << Records; // No argument, dump all contents
+ OS << Records; // No argument, dump all contents
break;
case PrintDetailedRecords:
EmitDetailedRecords(Records, OS);
break;
- case NullBackend: // No backend at all.
+ case NullBackend: // No backend at all.
break;
case DumpJSON:
EmitJSON(Records, OS);
OS << "\n";
break;
}
- case PrintSets:
- {
+ case PrintSets: {
SetTheory Sets;
Sets.addFieldExpander("Set", "Elements");
for (Record *Rec : Records.getAllDerivedDefinitions("Set")) {
OS << Rec->getName() << " = [";
- const std::vector<Record*> *Elts = Sets.expand(Rec);
+ const std::vector<Record *> *Elts = Sets.expand(Rec);
assert(Elts && "Couldn't expand Set instance");
for (Record *Elt : *Elts)
OS << ' ' << Elt->getName();
return false;
}
-}
+} // namespace
int main(int argc, char **argv) {
InitLLVM X(argc, argv);