1010#define BOLT_CORE_MCINSTUTILS_H
1111
1212#include " bolt/Core/BinaryBasicBlock.h"
13-
1413#include < map>
1514#include < tuple>
1615#include < variant>
@@ -46,10 +45,6 @@ class MCInstReference {
4645 const BinaryBasicBlock *BB;
4746 BinaryBasicBlock::const_iterator It;
4847
49- bool operator <(const RefInBB &Other) const {
50- return std::tie (BB, It) < std::tie (Other.BB , Other.It );
51- }
52-
5348 bool operator ==(const RefInBB &Other) const {
5449 return BB == Other.BB && It == Other.It ;
5550 }
@@ -67,10 +62,6 @@ class MCInstReference {
6762 const BinaryFunction *BF;
6863 nocfg_const_iterator It;
6964
70- bool operator <(const RefInBF &Other) const {
71- return std::tie (BF, It->first ) < std::tie (Other.BF , Other.It ->first );
72- }
73-
7465 bool operator ==(const RefInBF &Other) const {
7566 return BF == Other.BF && It->first == Other.It ->first ;
7667 }
@@ -116,10 +107,6 @@ class MCInstReference {
116107 // / Locates an instruction inside a function and returns a reference.
117108 static MCInstReference get (const MCInst *Inst, const BinaryFunction &BF);
118109
119- bool operator <(const MCInstReference &Other) const {
120- return Reference < Other.Reference ;
121- }
122-
123110 bool operator ==(const MCInstReference &Other) const {
124111 return Reference == Other.Reference ;
125112 }
0 commit comments