diff options
author | Andrew Waterman <andrew@sifive.com> | 2021-10-18 19:01:49 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2021-10-18 19:04:52 -0700 |
commit | 3490b195c7e31c360766ef2894b3a426dc8864c5 (patch) | |
tree | a385e9f5c1f5b6321c84599e6f746aa01ac10b65 /disasm/disasm.cc | |
parent | 1453b3588bdb6f42767c0c2ee2ffcd70ddf97afa (diff) | |
download | spike-3490b195c7e31c360766ef2894b3a426dc8864c5.zip spike-3490b195c7e31c360766ef2894b3a426dc8864c5.tar.gz spike-3490b195c7e31c360766ef2894b3a426dc8864c5.tar.bz2 |
Speed up disasm_insn_t::to_string
Stringstream is very slow; it's faster to manipulate strings instead.
Also, handle the underscore-dot replacement as a preprocessing step,
rather than doing it redundantly every time.
Diffstat (limited to 'disasm/disasm.cc')
0 files changed, 0 insertions, 0 deletions