ArrayRef: Remove the equals helper with many arguments.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 1 Mar 2015 21:05:05 +0000 (21:05 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 1 Mar 2015 21:05:05 +0000 (21:05 +0000)
commitc255d35a1040d049366645016ecd09b789d45586
tree7c5472d4991c4c1e60fdc9149b40a63bca60dfc9
parente2557d9bd1f90583af0a499051305f466340121b
ArrayRef: Remove the equals helper with many arguments.

With initializer lists there is a really neat idiomatic way to write
this, 'ArrayRef.equals({1, 2, 3, 4, 5})'. Remove the equal method which
always had a hard limit on the number of arguments. I considered
rewriting it with variadic templates but that's not really a good fit
for a function with homogeneous arguments.

'ArrayRef == {1, 2, 3, 4, 5}' would've been even more awesome, but C++11
doesn't allow init lists with binary operators.

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