diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-12-16 22:34:14 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-12-16 22:34:14 +0000 |
commit | f59e129c3b842a376ffe5f3e2bfd8814b70feed2 (patch) | |
tree | 5fa5b15d0f2e2ca0ce6eaf2b72260bf369f8c1d2 /clang/lib/Basic/TargetInfo.cpp | |
parent | c0a61734df10f26133825f5c1b622e6cd17d5e9a (diff) | |
download | bcm5719-llvm-f59e129c3b842a376ffe5f3e2bfd8814b70feed2.tar.gz bcm5719-llvm-f59e129c3b842a376ffe5f3e2bfd8814b70feed2.zip |
Add the value of "suitably aligned" from the C++11 standard to Basic/TargetInfo.
This is equal to alignof(std::max_align_t) on the platform and equal to the
alignment provided by malloc. (Platform owners please double-check your
platform's value.)
llvm-svn: 146762
Diffstat (limited to 'clang/lib/Basic/TargetInfo.cpp')
-rw-r--r-- | clang/lib/Basic/TargetInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Basic/TargetInfo.cpp b/clang/lib/Basic/TargetInfo.cpp index 694121545ad..66274f11fc1 100644 --- a/clang/lib/Basic/TargetInfo.cpp +++ b/clang/lib/Basic/TargetInfo.cpp @@ -34,6 +34,7 @@ TargetInfo::TargetInfo(const std::string &T) : Triple(T) { IntWidth = IntAlign = 32; LongWidth = LongAlign = 32; LongLongWidth = LongLongAlign = 64; + SuitableAlign = 64; HalfWidth = 16; HalfAlign = 16; FloatWidth = 32; |