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)
commit030133c5db1844ced6a2e3dc90c11cceab625e23
tree03230d7ee6266e1da9b1a3451b78d03daee90743
parent451dd50673f35ec12260c25e3c4e902fbdb2d756
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.

llvm-svn: 230907
llvm/include/llvm/ADT/ArrayRef.h
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/unittests/ADT/ArrayRefTest.cpp