File tree 2 files changed +7
-6
lines changed
llvm/lib/CodeGen/AsmPrinter
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -262,12 +262,13 @@ static uint64_t getFragmentOffsetInBits(const DIExpression &Expr) {
262
262
return Fragment ? Fragment->OffsetInBits : 0 ;
263
263
}
264
264
265
- bool FrameIndexExpr::operator <(const FrameIndexExpr &Other) const {
266
- return getFragmentOffsetInBits (*Expr) < getFragmentOffsetInBits (*Other.Expr );
265
+ bool llvm::operator <(const FrameIndexExpr &LHS, const FrameIndexExpr &RHS) {
266
+ return getFragmentOffsetInBits (*LHS.Expr ) <
267
+ getFragmentOffsetInBits (*RHS.Expr );
267
268
}
268
269
269
- bool EntryValueInfo ::operator <(const EntryValueInfo &Other) const {
270
- return getFragmentOffsetInBits (Expr) < getFragmentOffsetInBits (Other .Expr );
270
+ bool llvm ::operator <(const EntryValueInfo &LHS, const EntryValueInfo &RHS) {
271
+ return getFragmentOffsetInBits (LHS. Expr ) < getFragmentOffsetInBits (RHS .Expr );
271
272
}
272
273
273
274
Loc::Single::Single (DbgValueLoc ValueLoc)
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ struct FrameIndexExpr {
109
109
const DIExpression *Expr;
110
110
111
111
// / Operator enabling sorting based on fragment offset.
112
- bool operator <(const FrameIndexExpr &Other) const ;
112
+ friend bool operator <(const FrameIndexExpr &LHS, const FrameIndexExpr &RHS) ;
113
113
};
114
114
115
115
// / Represents an entry-value location, or a fragment of one.
@@ -118,7 +118,7 @@ struct EntryValueInfo {
118
118
const DIExpression &Expr;
119
119
120
120
// / Operator enabling sorting based on fragment offset.
121
- bool operator <(const EntryValueInfo &Other) const ;
121
+ friend bool operator <(const EntryValueInfo &LHS, const EntryValueInfo &RHS) ;
122
122
};
123
123
124
124
// Namespace for alternatives of a DbgVariable.
You can’t perform that action at this time.
0 commit comments