From 78929e8c3d399d47a36bb974eed74e53a3840402 Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Thu, 20 Feb 2020 07:52:08 -0800 Subject: Fixes for older compilers --- kernel/timinginfo.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'kernel') diff --git a/kernel/timinginfo.h b/kernel/timinginfo.h index 7855ddd15..5a6f4aa28 100644 --- a/kernel/timinginfo.h +++ b/kernel/timinginfo.h @@ -38,7 +38,14 @@ struct TimingInfo bool operator!=(const NameBit& nb) const { return !operator==(nb); } unsigned int hash() const { return mkhash_add(name.hash(), offset); } }; - typedef std::pair BitBit; + struct BitBit + { + NameBit first, second; + BitBit(const NameBit &first, const NameBit &second) : first(first), second(second) {} + BitBit(const SigBit &first, const SigBit &second) : first(first), second(second) {} + bool operator==(const BitBit& bb) const { return bb.first == first && bb.second == second; } + unsigned int hash() const { return mkhash_add(first.hash(), second.hash()); } + }; struct ModuleTiming { -- cgit v1.2.3