diff options
author | Devang Patel <dpatel@apple.com> | 2011-02-04 22:57:18 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-02-04 22:57:18 +0000 |
commit | 6c3ea9012e40a95d45592a15c63895d09ece5052 (patch) | |
tree | d67da03b9f74603522a415e019c553c2c719229c /include | |
parent | c57ef561423f1ac7f2db5b1840d5681f18a4c0c8 (diff) | |
download | external_llvm-6c3ea9012e40a95d45592a15c63895d09ece5052.zip external_llvm-6c3ea9012e40a95d45592a15c63895d09ece5052.tar.gz external_llvm-6c3ea9012e40a95d45592a15c63895d09ece5052.tar.bz2 |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/MachineLocation.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineLocation.h b/include/llvm/CodeGen/MachineLocation.h index fdf28d6..21951b6 100644 --- a/include/llvm/CodeGen/MachineLocation.h +++ b/include/llvm/CodeGen/MachineLocation.h @@ -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; } |