mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Improve compatibility with VC2005, patch by Morten Ofstad!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25661 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -281,7 +281,12 @@ namespace {
|
||||
unsigned from;
|
||||
unsigned to;
|
||||
bool operator<(const TableEntry &TE) const { return from < TE.from; }
|
||||
bool operator<(unsigned V) const { return from < V; }
|
||||
friend bool operator<(const TableEntry &TE, unsigned V) {
|
||||
return TE.from < V;
|
||||
}
|
||||
friend bool operator<(unsigned V, const TableEntry &TE) {
|
||||
return V < TE.from;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user