Skip to content

Commit bd5d0a2

Browse files
committed
Reformat
1 parent 029ec03 commit bd5d0a2

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

llvm/utils/TableGen/TableGen.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,12 @@ cl::opt<std::string> Class("class", cl::desc("Print Enum list for this class"),
157157
bool LLVMTableGenMain(raw_ostream &OS, RecordKeeper &Records) {
158158
switch (Action) {
159159
case PrintRecords:
160-
OS << Records; // No argument, dump all contents
160+
OS << Records; // No argument, dump all contents
161161
break;
162162
case PrintDetailedRecords:
163163
EmitDetailedRecords(Records, OS);
164164
break;
165-
case NullBackend: // No backend at all.
165+
case NullBackend: // No backend at all.
166166
break;
167167
case DumpJSON:
168168
EmitJSON(Records, OS);
@@ -227,13 +227,12 @@ bool LLVMTableGenMain(raw_ostream &OS, RecordKeeper &Records) {
227227
OS << "\n";
228228
break;
229229
}
230-
case PrintSets:
231-
{
230+
case PrintSets: {
232231
SetTheory Sets;
233232
Sets.addFieldExpander("Set", "Elements");
234233
for (Record *Rec : Records.getAllDerivedDefinitions("Set")) {
235234
OS << Rec->getName() << " = [";
236-
const std::vector<Record*> *Elts = Sets.expand(Rec);
235+
const std::vector<Record *> *Elts = Sets.expand(Rec);
237236
assert(Elts && "Couldn't expand Set instance");
238237
for (Record *Elt : *Elts)
239238
OS << ' ' << Elt->getName();
@@ -290,7 +289,7 @@ bool LLVMTableGenMain(raw_ostream &OS, RecordKeeper &Records) {
290289

291290
return false;
292291
}
293-
}
292+
} // namespace
294293

295294
int main(int argc, char **argv) {
296295
InitLLVM X(argc, argv);

llvm/utils/TableGen/TableGenBackends.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,6 @@ void EmitDirectivesImpl(RecordKeeper &RK, raw_ostream &OS);
9696
void EmitDXILOperation(RecordKeeper &RK, raw_ostream &OS);
9797
void EmitRISCVTargetDef(const RecordKeeper &RK, raw_ostream &OS);
9898

99-
} // End llvm namespace
99+
} // namespace llvm
100100

101101
#endif

0 commit comments

Comments
 (0)