From 423a10bc31a20bbdd03e85754971878f5a57f89b Mon Sep 17 00:00:00 2001 From: Keith Rothman <537074+litghost@users.noreply.github.com> Date: Tue, 23 Feb 2021 13:49:01 -0800 Subject: Change CellInfo in getBelPinsForCellPin to be const. Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com> --- common/nextpnr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common') diff --git a/common/nextpnr.h b/common/nextpnr.h index ed227fb6..59198d6d 100644 --- a/common/nextpnr.h +++ b/common/nextpnr.h @@ -1146,7 +1146,7 @@ template struct ArchAPI : BaseCtx virtual WireId getBelPinWire(BelId bel, IdString pin) const = 0; virtual PortType getBelPinType(BelId bel, IdString pin) const = 0; virtual typename R::BelPinsRangeT getBelPins(BelId bel) const = 0; - virtual typename R::CellBelPinRangeT getBelPinsForCellPin(CellInfo *cell_info, IdString pin) const = 0; + virtual typename R::CellBelPinRangeT getBelPinsForCellPin(const CellInfo *cell_info, IdString pin) const = 0; // Wire methods virtual typename R::AllWiresRangeT getWires() const = 0; virtual WireId getWireByName(IdStringList name) const = 0; @@ -1298,7 +1298,7 @@ template struct BaseArch : ArchAPI return empty_if_possible(); } - virtual typename R::CellBelPinRangeT getBelPinsForCellPin(CellInfo *cell_info, IdString pin) const override + virtual typename R::CellBelPinRangeT getBelPinsForCellPin(const CellInfo *cell_info, IdString pin) const override { return return_if_match, typename R::CellBelPinRangeT>({pin}); } -- cgit v1.2.3