[llvm-commits] [llvm] r63966 - /llvm/trunk/include/llvm/CodeGen/DebugLoc.h
Bill Wendling
isanbard at gmail.com
Fri Feb 6 13:34:13 PST 2009
Author: void
Date: Fri Feb 6 15:34:12 2009
New Revision: 63966
URL: http://llvm.org/viewvc/llvm-project?rev=63966&view=rev
Log:
Add comparison operators to DebugLoc.
Modified:
llvm/trunk/include/llvm/CodeGen/DebugLoc.h
Modified: llvm/trunk/include/llvm/CodeGen/DebugLoc.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/DebugLoc.h?rev=63966&r1=63965&r2=63966&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/DebugLoc.h (original)
+++ llvm/trunk/include/llvm/CodeGen/DebugLoc.h Fri Feb 6 15:34:12 2009
@@ -48,6 +48,9 @@
/// 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.
More information about the llvm-commits
mailing list