projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21afcda
)
Add comparison operators to DebugLoc.
author
Bill Wendling
<isanbard@gmail.com>
Fri, 6 Feb 2009 21:34:12 +0000
(21:34 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Fri, 6 Feb 2009 21:34:12 +0000
(21:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63966
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/DebugLoc.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/DebugLoc.h
b/include/llvm/CodeGen/DebugLoc.h
index 51f5116c75687cfc980ad30a7cc8d8491eb6feb8..d77ee847b6c5c74f2372f3edcd0fea2a238102c8 100644
(file)
--- 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.