Add a TrailingObjects template class.
authorJames Y Knight <jyknight@google.com>
Wed, 5 Aug 2015 22:57:34 +0000 (22:57 +0000)
committerJames Y Knight <jyknight@google.com>
Wed, 5 Aug 2015 22:57:34 +0000 (22:57 +0000)
commit1cf6cc7b914999dee2ec6600ab9fadfd5f28c154
treeb5e7f7e0bff55c95694fc4164e4d688fc33be096
parent3d0846737a42bbf83b24ad4ef80d9ce6d5310293
Add a TrailingObjects template class.

This is intended to help support the idiom of a class that has some
other objects (or multiple arrays of different types of objects)
appended on the end, which is used quite heavily in clang.

Differential Revision: http://reviews.llvm.org/D11272

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244164 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/TrailingObjects.h [new file with mode: 0644]
include/llvm/Support/type_traits.h
lib/IR/AttributeImpl.h
lib/IR/Attributes.cpp
unittests/Support/CMakeLists.txt
unittests/Support/TrailingObjectsTest.cpp [new file with mode: 0644]