Skip to content

Commit cd6750f

Browse files
authored
[RISCV][NFC] Add a newline when using --print-enabled-extensions (#98425)
The `--print-enabled-extensions` has been introduced in the #98207 , but it seems to be missing a newline in the end.
1 parent a92bcb2 commit cd6750f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

llvm/lib/TargetParser/RISCVISAInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ void RISCVISAInfo::printEnabledExtensions(
151151

152152
unsigned XLen = IsRV64 ? 64 : 32;
153153
if (auto ISAString = RISCVISAInfo::createFromExtMap(XLen, FullExtMap))
154-
outs() << "\nISA String: " << ISAString.get()->toString();
154+
outs() << "\nISA String: " << ISAString.get()->toString() << "\n";
155155
}
156156

157157
static bool stripExperimentalPrefix(StringRef &Ext) {

llvm/unittests/TargetParser/RISCVISAInfoTest.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,8 @@ R"(Extensions enabled for the given RISC-V target
10811081
Experimental extensions
10821082
zicfilp 0.4 'Zicfilp' (Landing pad)
10831083
1084-
ISA String: rv64i2p1_zicfilp0p4_zicsr2p0)";
1084+
ISA String: rv64i2p1_zicfilp0p4_zicsr2p0
1085+
)";
10851086
// clang-format on
10861087

10871088
StringMap<StringRef> DescMap;

0 commit comments

Comments
 (0)