@@ -865,41 +865,41 @@ DriveSpec DriverMap::operator()(DriveSpec spec)
865
865
return result;
866
866
}
867
867
868
- const char * log_signal (DriveChunkWire const &chunk)
868
+ std::string log_signal (DriveChunkWire const &chunk)
869
869
{
870
870
const char *id = log_id (chunk.wire ->name );
871
871
if (chunk.is_whole ())
872
872
return id;
873
873
if (chunk.width == 1 )
874
- return log_str ( stringf (" %s [%d]" , id, chunk.offset ) );
875
- return log_str ( stringf (" %s [%d:%d]" , id, chunk.offset + chunk.width - 1 , chunk.offset ) );
874
+ return stringf (" %s [%d]" , id, chunk.offset );
875
+ return stringf (" %s [%d:%d]" , id, chunk.offset + chunk.width - 1 , chunk.offset );
876
876
}
877
877
878
878
879
- const char * log_signal (DriveChunkPort const &chunk)
879
+ std::string log_signal (DriveChunkPort const &chunk)
880
880
{
881
881
const char *cell_id = log_id (chunk.cell ->name );
882
882
const char *port_id = log_id (chunk.port );
883
883
if (chunk.is_whole ())
884
- return log_str ( stringf (" %s <%s>" , cell_id, port_id) );
884
+ return stringf (" %s <%s>" , cell_id, port_id);
885
885
if (chunk.width == 1 )
886
- return log_str ( stringf (" %s <%s> [%d]" , cell_id, port_id, chunk.offset ) );
887
- return log_str ( stringf (" %s <%s> [%d:%d]" , cell_id, port_id, chunk.offset + chunk.width - 1 , chunk.offset ) );
886
+ return stringf (" %s <%s> [%d]" , cell_id, port_id, chunk.offset );
887
+ return stringf (" %s <%s> [%d:%d]" , cell_id, port_id, chunk.offset + chunk.width - 1 , chunk.offset );
888
888
}
889
889
890
- const char * log_signal (DriveChunkMarker const &chunk)
890
+ std::string log_signal (DriveChunkMarker const &chunk)
891
891
{
892
892
if (chunk.width == 1 )
893
- return log_str ( stringf (" <marker %d> [%d]" , chunk.marker , chunk.offset ) );
894
- return log_str ( stringf (" <marker %d> [%d:%d]" , chunk.marker , chunk.offset + chunk.width - 1 , chunk.offset ) );
893
+ return stringf (" <marker %d> [%d]" , chunk.marker , chunk.offset );
894
+ return stringf (" <marker %d> [%d:%d]" , chunk.marker , chunk.offset + chunk.width - 1 , chunk.offset );
895
895
}
896
896
897
- const char * log_signal (DriveChunk const &chunk)
897
+ std::string log_signal (DriveChunk const &chunk)
898
898
{
899
899
switch (chunk.type ())
900
900
{
901
901
case DriveType::NONE:
902
- return log_str ( stringf (" <none x%d>" , chunk.size () ));
902
+ return stringf (" <none x%d>" , chunk.size ());
903
903
case DriveType::CONSTANT:
904
904
return log_const (chunk.constant ());
905
905
case DriveType::WIRE:
@@ -917,14 +917,14 @@ const char *log_signal(DriveChunk const &chunk)
917
917
str += log_signal (single);
918
918
}
919
919
str += " >" ;
920
- return log_str ( str) ;
920
+ return str;
921
921
}
922
922
default :
923
923
log_abort ();
924
924
}
925
925
}
926
926
927
- const char * log_signal (DriveSpec const &spec)
927
+ std::string log_signal (DriveSpec const &spec)
928
928
{
929
929
auto &chunks = spec.chunks ();
930
930
if (chunks.empty ())
@@ -943,7 +943,7 @@ const char *log_signal(DriveSpec const &spec)
943
943
}
944
944
str += " }" ;
945
945
946
- return log_str ( str) ;
946
+ return str;
947
947
}
948
948
949
949
YOSYS_NAMESPACE_END
0 commit comments