aboutsummaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-02-23 22:55:09 +0000
committerGitHub <noreply@github.com>2021-02-23 22:55:09 +0000
commit19ae97afd12e3fed9d09aaf886f6e25a92de1032 (patch)
tree68b899b428e601e58c531585aec5de3f4cb63f7c /generic
parent5de19786322412ce151b0341ed714dcdb03433cc (diff)
parent0758f68020efa6d9441eab9de903673f02d47639 (diff)
downloadnextpnr-19ae97afd12e3fed9d09aaf886f6e25a92de1032.tar.gz
nextpnr-19ae97afd12e3fed9d09aaf886f6e25a92de1032.tar.bz2
nextpnr-19ae97afd12e3fed9d09aaf886f6e25a92de1032.zip
Merge pull request #595 from litghost/const_cell_info
Change CellInfo in getBelPinsForCellPin to be const.
Diffstat (limited to 'generic')
-rw-r--r--generic/arch.cc2
-rw-r--r--generic/arch.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/generic/arch.cc b/generic/arch.cc
index 03d8c801..1f9531c7 100644
--- a/generic/arch.cc
+++ b/generic/arch.cc
@@ -347,7 +347,7 @@ std::vector<IdString> Arch::getBelPins(BelId bel) const
return ret;
}
-const std::vector<IdString> &Arch::getBelPinsForCellPin(CellInfo *cell_info, IdString pin) const
+const std::vector<IdString> &Arch::getBelPinsForCellPin(const CellInfo *cell_info, IdString pin) const
{
return cell_info->bel_pins.at(pin);
}
diff --git a/generic/arch.h b/generic/arch.h
index 8a5b27e0..cc8de484 100644
--- a/generic/arch.h
+++ b/generic/arch.h
@@ -247,7 +247,7 @@ struct Arch : ArchAPI<ArchRanges>
WireId getBelPinWire(BelId bel, IdString pin) const override;
PortType getBelPinType(BelId bel, IdString pin) const override;
std::vector<IdString> getBelPins(BelId bel) const override;
- const std::vector<IdString> &getBelPinsForCellPin(CellInfo *cell_info, IdString pin) const override;
+ const std::vector<IdString> &getBelPinsForCellPin(const CellInfo *cell_info, IdString pin) const override;
WireId getWireByName(IdStringList name) const override;
IdStringList getWireName(WireId wire) const override;