diff options
| -rw-r--r-- | llvm/include/llvm/CodeGen/DebugLoc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/DebugLoc.h b/llvm/include/llvm/CodeGen/DebugLoc.h index 51f5116c756..d77ee847b6c 100644 --- a/llvm/include/llvm/CodeGen/DebugLoc.h +++ b/llvm/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. |

