[llvm-remarkutil] NFC: Combine parsing + serializing for bitstream2yaml
authorJessica Paquette <jpaquette@apple.com>
Tue, 13 Sep 2022 18:02:52 +0000 (11:02 -0700)
committerJessica Paquette <jpaquette@apple.com>
Tue, 13 Sep 2022 18:34:33 +0000 (11:34 -0700)
commite166d2e00bc0624cd83d9c790bc4b8c80446d126
treeac5de6500810639ff69edd326f9416001e581db7
parentef3e80b6bd4494b230c55b0d095324a8f09c0c32
[llvm-remarkutil] NFC: Combine parsing + serializing for bitstream2yaml

We don't need to populate a string table, so we don't need to pre-parse the
remarks.

Split the bitstream2yaml and yaml2bitstream cases up so that we can avoid the
extra remark traversal in the bitstream2yaml case.

This kills the TODO.
llvm/tools/llvm-remarkutil/RemarkUtil.cpp