[llvm-commits] [llvm] r63966 - /llvm/trunk/include/llvm/CodeGen/DebugLoc.h
Chris Lattner
clattner at apple.com
Fri Feb 6 14:36:59 PST 2009
On Feb 6, 2009, at 1:34 PM, Bill Wendling wrote:
> 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.
These should be marked const, thanks!
-Chris
>
>
> 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.
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list