diff --git a/clang-tools-extra/clang-doc/YAMLGenerator.cpp b/clang-tools-extra/clang-doc/YAMLGenerator.cpp index 5a1d822526daa..7ccf526c59e22 100644 --- a/clang-tools-extra/clang-doc/YAMLGenerator.cpp +++ b/clang-tools-extra/clang-doc/YAMLGenerator.cpp @@ -32,24 +32,6 @@ LLVM_YAML_IS_SEQUENCE_VECTOR(BaseRecordInfo) namespace llvm { -template -static bool operator==(const llvm::simple_ilist &LHS, - const llvm::simple_ilist &RHS) { - auto LIt = LHS.begin(), LEnd = LHS.end(); - auto RIt = RHS.begin(), REnd = RHS.end(); - for (; LIt != LEnd && RIt != REnd; ++LIt, ++RIt) { - if (!(*LIt == *RIt)) - return false; - } - return LIt == LEnd && RIt == REnd; -} - -template -static bool operator!=(const llvm::simple_ilist &LHS, - const llvm::simple_ilist &RHS) { - return !(LHS == RHS); -} - namespace yaml { // Provide SequenceTraits for ArrayRef since YAMLTraits only provides it for