Skip to content

Commit e5a9182

Browse files
committed
Resolve review comments
1 parent e400b22 commit e5a9182

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

bolt/include/bolt/Core/MCInstUtils.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
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
}

bolt/lib/Core/MCInstUtils.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "bolt/Core/MCInstUtils.h"
10-
1110
#include "bolt/Core/BinaryBasicBlock.h"
1211
#include "bolt/Core/BinaryFunction.h"
1312

0 commit comments

Comments
 (0)