mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 06:09:05 +00:00
xlc supports __attribute__((aligned(x))), use it.
Patch by Kai. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167087 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dc6d846df5
commit
52d053238a
@ -78,7 +78,7 @@ template <size_t Alignment> struct AlignedCharArrayImpl;
|
||||
template <> struct AlignedCharArrayImpl<x> { \
|
||||
char alignas(x) aligned; \
|
||||
}
|
||||
#elif defined(__GNUC__)
|
||||
#elif defined(__GNUC__) || defined(__IBM_ATTRIBUTES)
|
||||
#define LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT(x) \
|
||||
template <> struct AlignedCharArrayImpl<x> { \
|
||||
char aligned __attribute__((aligned(x))); \
|
||||
|
Loading…
Reference in New Issue
Block a user