Skip to content

Commit da69f8e

Browse files
committed
[RISCV][NFC] use OS.indent() to replace spaces
Signed-off-by: Jerry Zhang Jian <[email protected]>
1 parent 3c9e345 commit da69f8e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/utils/TableGen/RISCVTargetDefEmitter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static void printExtensionTable(raw_ostream &OS,
3636
if (R->getValueAsBit("Experimental") != Experimental)
3737
continue;
3838

39-
OS << " {\"" << getExtensionName(R) << "\", {"
39+
OS.indent(4) << "{\"" << getExtensionName(R) << "\", {"
4040
<< R->getValueAsInt("MajorVersion") << ", "
4141
<< R->getValueAsInt("MinorVersion") << "}},\n";
4242
}
@@ -77,7 +77,7 @@ static void emitRISCVExtensions(RecordKeeper &Records, raw_ostream &OS) {
7777
if (!ImpliedExt->isSubClassOf("RISCVExtension"))
7878
continue;
7979

80-
OS << " { {\"" << Name << "\"}, \"" << getExtensionName(ImpliedExt)
80+
OS.indent(4) << "{ {\"" << Name << "\"}, \"" << getExtensionName(ImpliedExt)
8181
<< "\"},\n";
8282
}
8383
}
@@ -236,7 +236,7 @@ static void emitRISCVExtensionBitmask(RecordKeeper &RK, raw_ostream &OS) {
236236
"duplicated bitmask");
237237
#endif
238238

239-
OS << " {"
239+
OS.indent(4) << "{"
240240
<< "\"" << ExtName << "\""
241241
<< ", " << GroupIDVal << ", " << BitPosVal << "ULL"
242242
<< "},\n";

0 commit comments

Comments
 (0)