[AlignOf] Add AlignedCharArray and refactor AlignedCharArrayUnion.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Mon, 31 Dec 2012 19:54:45 +0000 (19:54 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Mon, 31 Dec 2012 19:54:45 +0000 (19:54 +0000)
commit3c6f89aa2e489b79f16270dae42d10059234cf82
tree0e645e0c6803e47b09fb35a8f929c4178217884b
parent44365353a415d37daae9df53fbf6a91677ed90d3
[AlignOf] Add AlignedCharArray and refactor AlignedCharArrayUnion.

This adds AlignedCharArray<Alignment, Size>. A templated struct that contains
a member named buffer of type char[Size] that is aligned to Alignment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171319 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/AlignOf.h
unittests/Support/AlignOfTest.cpp