forked from OSchip/llvm-project
Add operator '<=' for comparing SourceLocations.
llvm-svn: 73820
This commit is contained in:
parent
ce3797527e
commit
ef21d5d870
|
@ -145,6 +145,10 @@ inline bool operator<(const SourceLocation &LHS, const SourceLocation &RHS) {
|
|||
return LHS.getRawEncoding() < RHS.getRawEncoding();
|
||||
}
|
||||
|
||||
inline bool operator<=(const SourceLocation &LHS, const SourceLocation &RHS) {
|
||||
return LHS.getRawEncoding() <= RHS.getRawEncoding();
|
||||
}
|
||||
|
||||
/// SourceRange - a trival tuple used to represent a source range.
|
||||
class SourceRange {
|
||||
SourceLocation B;
|
||||
|
|
Loading…
Reference in New Issue