diff options
Diffstat (limited to 'include/llvm/CodeGen/DebugLoc.h')
| -rw-r--r-- | include/llvm/CodeGen/DebugLoc.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/DebugLoc.h b/include/llvm/CodeGen/DebugLoc.h index 5052928..d5ad9dc 100644 --- a/include/llvm/CodeGen/DebugLoc.h +++ b/include/llvm/CodeGen/DebugLoc.h @@ -27,6 +27,13 @@ namespace llvm { DebugLocTuple(unsigned s, unsigned l, unsigned c) : Src(s), Line(l), Col(c) {}; + + bool operator==(const DebugLocTuple &DLT) const { + return Src == DLT.Src && Line == DLT.Line && Col == DLT.Col; + } + bool operator!=(const DebugLocTuple &DLT) const { + return !(*this == DLT); + } }; /// DebugLoc - Debug location id. This is carried by SDNode and MachineInstr |
