diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-02-06 21:34:12 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-02-06 21:34:12 +0000 |
commit | 943446b9694c1f2b4af9b99fb3e75585ae05cd43 (patch) | |
tree | 9e4ce2030fc3a8ef58002ca92ec010a21265596e /include/llvm/CodeGen/DebugLoc.h | |
parent | 2970af10332eb92ea7cd04985e2b76c7f2eae81f (diff) | |
download | external_llvm-943446b9694c1f2b4af9b99fb3e75585ae05cd43.zip external_llvm-943446b9694c1f2b4af9b99fb3e75585ae05cd43.tar.gz external_llvm-943446b9694c1f2b4af9b99fb3e75585ae05cd43.tar.bz2 |
Add comparison operators to DebugLoc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63966 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/DebugLoc.h')
-rw-r--r-- | include/llvm/CodeGen/DebugLoc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/DebugLoc.h b/include/llvm/CodeGen/DebugLoc.h index 51f5116..d77ee84 100644 --- a/include/llvm/CodeGen/DebugLoc.h +++ b/include/llvm/CodeGen/DebugLoc.h @@ -48,6 +48,9 @@ namespace llvm { /// isUnknown - Return true if there is no debug info for the SDNode / /// MachineInstr. bool isUnknown() const { return Idx == 0; } + + bool operator==(const DebugLoc &DL) { return Idx == DL.Idx; } + bool operator!=(const DebugLoc &DL) { return !(*this == DL); } }; // Partially specialize DenseMapInfo for DebugLocTyple. |