From: NAKAMURA Takumi Date: Tue, 21 Mar 2023 04:09:34 +0000 (+0900) Subject: Reformat X-Git-Tag: upstream/17.0.6~14167 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bd5d0a20d44456b2ee53feb229ed97bb8937b2d3;p=platform%2Fupstream%2Fllvm.git Reformat --- diff --git a/llvm/utils/TableGen/TableGen.cpp b/llvm/utils/TableGen/TableGen.cpp index fd8612c..2ec3deb 100644 --- a/llvm/utils/TableGen/TableGen.cpp +++ b/llvm/utils/TableGen/TableGen.cpp @@ -157,12 +157,12 @@ cl::opt Class("class", cl::desc("Print Enum list for this class"), 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); @@ -227,13 +227,12 @@ bool LLVMTableGenMain(raw_ostream &OS, RecordKeeper &Records) { 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 *Elts = Sets.expand(Rec); + const std::vector *Elts = Sets.expand(Rec); assert(Elts && "Couldn't expand Set instance"); for (Record *Elt : *Elts) OS << ' ' << Elt->getName(); @@ -290,7 +289,7 @@ bool LLVMTableGenMain(raw_ostream &OS, RecordKeeper &Records) { return false; } -} +} // namespace int main(int argc, char **argv) { InitLLVM X(argc, argv); diff --git a/llvm/utils/TableGen/TableGenBackends.h b/llvm/utils/TableGen/TableGenBackends.h index ac44bab..12ea753 100644 --- a/llvm/utils/TableGen/TableGenBackends.h +++ b/llvm/utils/TableGen/TableGenBackends.h @@ -96,6 +96,6 @@ void EmitDirectivesImpl(RecordKeeper &RK, raw_ostream &OS); void EmitDXILOperation(RecordKeeper &RK, raw_ostream &OS); void EmitRISCVTargetDef(const RecordKeeper &RK, raw_ostream &OS); -} // End llvm namespace +} // namespace llvm #endif