From 7ef4d0726bc2502e0d7cb15b3961da894a4e19ba Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Mon, 18 Jun 2018 16:08:19 +0200 Subject: Getting rid of users of old IdString API Signed-off-by: Clifford Wolf --- dummy/arch.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'dummy') diff --git a/dummy/arch.h b/dummy/arch.h index 9bd09f9d..865536dc 100644 --- a/dummy/arch.h +++ b/dummy/arch.h @@ -47,12 +47,6 @@ struct DelayInfo typedef IdString BelType; typedef IdString PortPin; -static inline IdString belTypeToId(BelType type) { return type; } -static inline IdString portPinToId(PortPin type) { return type; } - -static inline BelType belTypeFromId(IdString id) { return id; } -static inline PortPin portPinFromId(IdString id) { return id; } - typedef IdString BelId; typedef IdString WireId; typedef IdString PipId; @@ -76,6 +70,12 @@ struct Arch virtual IdString id(const std::string &s) const { abort(); } virtual IdString id(const char *s) const { abort(); } + IdString belTypeToId(BelType type) const { return type; } + IdString portPinToId(PortPin type) const { return type; } + + BelType belTypeFromId(IdString id) const { return id; } + PortPin portPinFromId(IdString id) const { return id; } + BelId getBelByName(IdString name) const; IdString getBelName(BelId bel) const; void bindBel(BelId bel, IdString cell); -- cgit v1.2.3