diff options
author | Ivan Krasin <krasin@chromium.org> | 2011-08-29 22:39:12 +0000 |
---|---|---|
committer | Ivan Krasin <krasin@chromium.org> | 2011-08-29 22:39:12 +0000 |
commit | f619cdc13267625a6c63aedc9ba4b52bdb40a3b9 (patch) | |
tree | 9d1dd84384d3ee8b881e8f37d22e51a73c9a0d11 /lib/Basic/Targets.cpp | |
parent | 05b436ef550837e2141c55c590fb16010b8658d8 (diff) |
Clang/PNaCl: Improve test coverage for PNaClTargetInfo (type aligns), fixes nits:
- wrong alignment for double (it was 4, but 8 is desired),
- added checks for _REENTRANT define,
- fixed the issue that defines were not tested (because the check for inside #ifdef).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138775 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Targets.cpp')
-rw-r--r-- | lib/Basic/Targets.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index 7399d5a359..206ff65df5 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -2856,6 +2856,8 @@ public: this->UIntMaxType = TargetInfo::UnsignedLongLong; this->Int64Type = TargetInfo::SignedLongLong; this->SizeType = TargetInfo::UnsignedInt; + this->DoubleAlign = 64; + this->LongDoubleAlign = 64; DescriptionString = "e-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-" "f32:32:32-f64:64:64-p:32:32:32-v128:32:32"; } |