[RISCV] Remove unneeded StringRef to std::string conversions in RISCVCompressInstEmit...
authorCraig Topper <craig.topper@sifive.com>
Sat, 16 Jan 2021 08:03:35 +0000 (00:03 -0800)
committerCraig Topper <craig.topper@sifive.com>
Sun, 17 Jan 2021 04:09:45 +0000 (20:09 -0800)
commit633c5afccfbb0a985976aa3e6493f1a08061cb10
tree0e5ce44d89af9a32f94890c945ad72f957b25662
parenta048ce13e32daa255d26533c00da8abd0b67e819
[RISCV] Remove unneeded StringRef to std::string conversions in RISCVCompressInstEmitter. NFC

Stop concatenating std::string before streaming into a raw_ostream.
Just stream the pieces.

Remove some new lines from asserts. Remove std::string concatenation
from an assert. assert strings aren't really evaluated like this at
runtime. An assertion failure will just print exactly what's between
the parentheses in the source.
llvm/utils/TableGen/RISCVCompressInstEmitter.cpp