Skip to content

Commit 8ef3b02

Browse files
call c_str() in physical_type_util.cpp
1 parent 3048d8b commit 8ef3b02

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

libs/libarchfpga/src/physical_types_util.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ int get_sub_tile_physical_pin(int sub_tile_index,
430430
archfpga_throw(__FILE__, __LINE__,
431431
"Couldn't find the corresponding physical tile pin of the logical block pin %d."
432432
"Physical Tile Type: %s, Logical Block Type: %s.\n",
433-
pin, physical_tile->name, logical_block->name);
433+
pin, physical_tile->name.c_str(), logical_block->name.c_str());
434434
}
435435

436436
return result->second.pin;
@@ -450,7 +450,7 @@ int get_logical_block_physical_sub_tile_index(t_physical_tile_type_ptr physical_
450450
if (sub_tile_index == OPEN) {
451451
archfpga_throw(__FILE__, __LINE__,
452452
"Found no instances of logical block type '%s' within physical tile type '%s'. ",
453-
logical_block->name, physical_tile->name);
453+
logical_block->name.c_str(), physical_tile->name.c_str());
454454
}
455455

456456
return sub_tile_index;
@@ -488,7 +488,7 @@ int get_logical_block_physical_sub_tile_index(t_physical_tile_type_ptr physical_
488488
if (sub_tile_index == OPEN) {
489489
archfpga_throw(__FILE__, __LINE__,
490490
"Found no instances of logical block type '%s' within physical tile type '%s'. ",
491-
logical_block->name, physical_tile->name);
491+
logical_block->name.c_str(), physical_tile->name.c_str());
492492
}
493493

494494
return sub_tile_index;
@@ -633,7 +633,7 @@ std::pair<int, int> get_capacity_location_from_physical_pin(t_physical_tile_type
633633

634634
archfpga_throw(__FILE__, __LINE__,
635635
"Couldn't find sub tile that contains the pin %d in physical tile %s.\n",
636-
pin, physical_tile->name);
636+
pin, physical_tile->name.c_str());
637637
}
638638

639639
int get_physical_pin_from_capacity_location(t_physical_tile_type_ptr physical_tile, int relative_pin, int capacity_location) {
@@ -652,7 +652,7 @@ int get_physical_pin_from_capacity_location(t_physical_tile_type_ptr physical_ti
652652

653653
archfpga_throw(__FILE__, __LINE__,
654654
"Couldn't find sub tile that contains the relative pin %d at the capacity location %d in physical tile %s.\n",
655-
relative_pin, capacity_location, physical_tile->name);
655+
relative_pin, capacity_location, physical_tile->name.c_str());
656656
}
657657
bool is_opin(int ipin, t_physical_tile_type_ptr type) {
658658
/* Returns true if this clb pin is an output, false otherwise. */
@@ -809,14 +809,14 @@ std::vector<std::string> block_type_class_index_to_pin_names(t_physical_tile_typ
809809
if (is_pin_on_tile(type, pin_physical_start)) {
810810
VTR_ASSERT(is_pin_on_tile(type, pin_physical_end) == true);
811811
port_name = sub_tile.ports[iport].name;
812-
block_name = vtr::string_fmt("%s[%d]", type->name, icapacity);
812+
block_name = vtr::string_fmt("%s[%d]", type->name.c_str(), icapacity);
813813
} else {
814814
VTR_ASSERT(is_pin_on_tile(type, pin_physical_end) == false);
815815
auto pb_pin = get_pb_pin_from_pin_physical_num(type, pin_physical_start);
816816
port_name = pb_pin->port->name;
817817
auto pb_graph_node = get_pb_graph_node_from_pin_physical_num(type, pin_physical_start);
818818
block_name = vtr::string_fmt("%s[%d].%s",
819-
type->name,
819+
type->name.c_str(),
820820
icapacity,
821821
pb_graph_node->hierarchical_type_name().c_str());
822822
}

0 commit comments

Comments
 (0)