aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-07-23 15:35:09 +0200
committerClifford Wolf <clifford@clifford.at>2014-07-23 15:35:09 +0200
commit85db102e13bbd6decda3f99ef640d0991ee24b33 (patch)
tree7bb29722d99cf42328c4e9d5d0ba035425449cd4 /kernel
parent5b51b67297a5e5e20cbe2b015b584aee4c30489f (diff)
downloadyosys-85db102e13bbd6decda3f99ef640d0991ee24b33.tar.gz
yosys-85db102e13bbd6decda3f99ef640d0991ee24b33.tar.bz2
yosys-85db102e13bbd6decda3f99ef640d0991ee24b33.zip
Replaced RTLIL::SigSpec::operator!=() with inline version
Diffstat (limited to 'kernel')
-rw-r--r--kernel/rtlil.cc7
-rw-r--r--kernel/rtlil.h2
2 files changed, 1 insertions, 8 deletions
diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc
index 6bb3e6126..f907ff642 100644
--- a/kernel/rtlil.cc
+++ b/kernel/rtlil.cc
@@ -1929,13 +1929,6 @@ bool RTLIL::SigSpec::operator ==(const RTLIL::SigSpec &other) const
return true;
}
-bool RTLIL::SigSpec::operator !=(const RTLIL::SigSpec &other) const
-{
- if (*this == other)
- return false;
- return true;
-}
-
bool RTLIL::SigSpec::is_fully_const() const
{
pack();
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index 832146594..80007ab8c 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -575,7 +575,7 @@ public:
bool operator <(const RTLIL::SigSpec &other) const;
bool operator ==(const RTLIL::SigSpec &other) const;
- bool operator !=(const RTLIL::SigSpec &other) const;
+ inline bool operator !=(const RTLIL::SigSpec &other) const { return !(*this == other); }
bool is_fully_const() const;
bool is_fully_def() const;