OSDN Git Service

ADT: Move ArrayRef comparison operators into the class
authorPavel Labath <labath@google.com>
Thu, 28 Jun 2018 11:45:28 +0000 (11:45 +0000)
committerPavel Labath <labath@google.com>
Thu, 28 Jun 2018 11:45:28 +0000 (11:45 +0000)
commitd5b753a85d9d3727e813d21d10e97c34b1f3bb65
treea085c7b5a969fd3da5420397d2e46a952d9eae71
parent5652271db1afe735efda339ab5281b4c86efe83e
ADT: Move ArrayRef comparison operators into the class

Summary:
This allows the implicit ArrayRef conversions to kick in when e.g.
comparing ArrayRef to a SmallVector.

Reviewers: zturner, dblaikie

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D48632

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335839 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/ArrayRef.h
unittests/ADT/ArrayRefTest.cpp