Remove unnecessary pruning of double-quoting
authorSahand Kashani <sahand.kashani@gmail.com>
Wed, 8 Apr 2020 21:20:56 +0000 (23:20 +0200)
committerSahand Kashani <sahand.kashani@gmail.com>
Wed, 8 Apr 2020 21:20:56 +0000 (23:20 +0200)
commit820e3d1dad4f484f9646588f79b73b21b495e3d8
treec1ecb184d09dc988f7377fd90246e43d24b0e75e
parent6c2b220af56ccac5ce343914cab095114656c83a
Remove unnecessary pruning of double-quoting

In the past I was calling the ILANG_BACKEND::dump_const() to dump
values to an output stream. When these values were strings, the
function used to add quotes around them. The firrtl compiler, in turn,
escaped these quotes and the result was double-quoted strings which
were hard to read.

However I'm now calling design_entity->get_src_attribute() directly
and there is no additional quote being put around it, so we can
safely remove the unnecessary call to str.erase() here.
backends/firrtl/firrtl.cc