aboutsummaryrefslogtreecommitdiffstats
path: root/common/base_arch.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/base_arch.h')
-rw-r--r--common/base_arch.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/base_arch.h b/common/base_arch.h
index 35500c1d..8ed77790 100644
--- a/common/base_arch.h
+++ b/common/base_arch.h
@@ -393,13 +393,13 @@ template <typename R> struct BaseArch : ArchAPI<R>
});
}
- virtual Loc getClusterOffset(CellInfo *cell) const override
+ virtual Loc getClusterOffset(const CellInfo *cell) const override
{
return if_using_basecluster<Loc>(cell,
[](const BaseClusterInfo *c) { return Loc(c->constr_x, c->constr_y, 0); });
}
- virtual bool isClusterStrict(CellInfo *cell) const override { return true; }
+ virtual bool isClusterStrict(const CellInfo *cell) const override { return true; }
virtual bool getClusterPlacement(ClusterId cluster, BelId root_bel,
std::vector<std::pair<CellInfo *, BelId>> &placement) const override