add a new ArrayRef class. This is intended to replace the idiom we
authorChris Lattner <sabre@nondot.org>
Mon, 14 Feb 2011 07:35:09 +0000 (07:35 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 14 Feb 2011 07:35:09 +0000 (07:35 +0000)
commit2b9bc422a5e6840f5b925316bc06d5943deb610a
tree5a4ba8c2f2fe4f2f9ee914626ed2c48021ef5e82
parent593051b4e2c5fb88fa4acbe3bec92581bef554c0
add a new ArrayRef class.  This is intended to replace the idiom we
use in many places where we pass a pointer and size to abstract APIs
that can take C arrays, std::vector, SmallVector, etc.  It is to arrays
what StringRef is to strings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125486 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/ArrayRef.h [new file with mode: 0644]