projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
93751c8
)
Adding operator== for document_iterator.
author
Manuel Klimek
<klimek@google.com>
Tue, 17 Apr 2012 16:38:41 +0000
(16:38 +0000)
committer
Manuel Klimek
<klimek@google.com>
Tue, 17 Apr 2012 16:38:41 +0000
(16:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154927
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/YAMLParser.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/YAMLParser.h
b/include/llvm/Support/YAMLParser.h
index b24cacd3c3282c2089f86b037c5659c89257acff..47206b3c6d9d65ec471ef5ea4dd29dbcec5e3b77 100644
(file)
--- a/
include/llvm/Support/YAMLParser.h
+++ b/
include/llvm/Support/YAMLParser.h
@@
-516,8
+516,11
@@
public:
document_iterator() : Doc(NullDoc) {}
document_iterator(OwningPtr<Document> &D) : Doc(D) {}
+ bool operator ==(const document_iterator &Other) {
+ return Doc == Other.Doc;
+ }
bool operator !=(const document_iterator &Other) {
- return
Doc != Other.Doc
;
+ return
!(*this == Other)
;
}
document_iterator operator ++() {