[RISCV] Simplify mergeCondAndCode in RISCVCompressInstEmitter.cpp. NFC
authorCraig Topper <craig.topper@sifive.com>
Sun, 17 Jan 2021 04:59:48 +0000 (20:59 -0800)
committerCraig Topper <craig.topper@sifive.com>
Sun, 17 Jan 2021 04:59:48 +0000 (20:59 -0800)
commit2b6a92625fdf11928bff1a31cdc06d7dbd193f85
tree78fe6d185799f48428fd9fd1bf30e48451c040db
parent97f7e4e8c9309e0806f9b8f8afcf8ce2ef63656c
[RISCV] Simplify mergeCondAndCode in RISCVCompressInstEmitter.cpp. NFC

Instead forming a std::string and returning it to pass into another
raw_ostream, just pass the raw_ostream as a parameter.

Take StringRef as arguments instead raw_string_ostream references
making the caller responsible for converting to strings. Use
StringRef operations instead of std::string::substr.a
llvm/utils/TableGen/RISCVCompressInstEmitter.cpp