Merge .debug_loc entries whenever possible to reduce debug_loc size.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124904 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel
2011-02-04 22:57:18 +00:00
parent c57ef56142
commit 6c3ea9012e
4 changed files with 864 additions and 15 deletions
+5
View File
@@ -41,6 +41,11 @@ public:
: IsRegister(true), Register(R), Offset(0) {}
MachineLocation(unsigned R, int O)
: IsRegister(false), Register(R), Offset(O) {}
bool operator==(const MachineLocation &Other) const {
return IsRegister == Other.IsRegister && Register == Other.Register &&
Offset == Other.Offset;
}
// Accessors
bool isReg() const { return IsRegister; }