aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorAlberto Gonzalez <boqwxp@airmail.cc>2020-03-14 04:40:14 +0000
committerAlberto Gonzalez <boqwxp@airmail.cc>2020-03-16 20:35:11 +0000
commit70093698f58e36ee9ea285a08bc79fefae752048 (patch)
tree413447d24e3da4d1d308c3457e5575376f946589 /kernel
parentc0a009139b080078af703bf07f83637ef3c48259 (diff)
downloadyosys-70093698f58e36ee9ea285a08bc79fefae752048.tar.gz
yosys-70093698f58e36ee9ea285a08bc79fefae752048.tar.bz2
yosys-70093698f58e36ee9ea285a08bc79fefae752048.zip
Cleanup code style and pseudo-private member usage in `passes/cmds/select.cc`.
Diffstat (limited to 'kernel')
-rw-r--r--kernel/rtlil.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index 58c5d9674..10c4c3b5b 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -560,6 +560,7 @@ namespace RTLIL
ObjRange(decltype(list_p) list_p, int *refcount_p) : list_p(list_p), refcount_p(refcount_p) { }
RTLIL::ObjIterator<T> begin() { return RTLIL::ObjIterator<T>(list_p, refcount_p); }
RTLIL::ObjIterator<T> end() { return RTLIL::ObjIterator<T>(); }
+ bool contains(const RTLIL::IdString &what) { return (list_p->count(what) > 0); }
size_t size() const {
return list_p->size();