[StackMap] Use lambdas to specify the sort and erase conditions. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241823 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Juergen Ributzka
2015-07-09 17:11:15 +00:00
parent fd5ef9d20c
commit c014920a89
2 changed files with 14 additions and 13 deletions

View File

@ -152,13 +152,6 @@ public:
unsigned short DwarfRegNum;
unsigned short Size;
void MarkInvalid() { Reg = 0; }
// Only sort by the dwarf register number.
bool operator<(const LiveOutReg &LO) const {
return DwarfRegNum < LO.DwarfRegNum;
}
static bool IsInvalid(const LiveOutReg &LO) { return LO.Reg == 0; }
LiveOutReg() : Reg(0), DwarfRegNum(0), Size(0) {}
LiveOutReg(unsigned short Reg, unsigned short DwarfRegNum,
unsigned short Size)