Fix layering StringRef copy using BumpPtrAllocator.
authorNick Kledzik <kledzik@apple.com>
Wed, 5 Feb 2014 22:22:56 +0000 (22:22 +0000)
committerNick Kledzik <kledzik@apple.com>
Wed, 5 Feb 2014 22:22:56 +0000 (22:22 +0000)
commit8147752976bda4499863c3db9feee760cf0b9015
tree03f0b01caeb12b4eebfcd8bfe91862403d0f0e15
parent1a10a514313c5b602361bb8ac4b8980675929f0b
Fix layering StringRef copy using BumpPtrAllocator.

Now to copy a string into a BumpPtrAllocator and get a StringRef to the copy:

   StringRef myCopy = myStr.copy(myAllocator);

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200885 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/ArrayRef.h
include/llvm/ADT/StringRef.h
include/llvm/Support/Allocator.h
unittests/ADT/ArrayRefTest.cpp [new file with mode: 0644]
unittests/ADT/CMakeLists.txt
unittests/ADT/StringRefTest.cpp
unittests/Support/AllocatorTest.cpp