diff options
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. |