summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic
diff options
context:
space:
mode:
authorIvan Krasin <krasin@chromium.org>2011-08-29 22:39:12 +0000
committerIvan Krasin <krasin@chromium.org>2011-08-29 22:39:12 +0000
commit69a990badbe5c14189f6a7c140eb8083ec6e82d6 (patch)
treeba17ef8a217c92be9b04be6b64bf1d9bffec3819 /clang/lib/Basic
parentdd5fd87a6dfef67b66aa9270c1be01dff1ace07e (diff)
downloadbcm5719-llvm-69a990badbe5c14189f6a7c140eb8083ec6e82d6.tar.gz
bcm5719-llvm-69a990badbe5c14189f6a7c140eb8083ec6e82d6.zip
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). llvm-svn: 138775
Diffstat (limited to 'clang/lib/Basic')
-rw-r--r--clang/lib/Basic/Targets.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp
index 7399d5a3595..206ff65df5b 100644
--- a/clang/lib/Basic/Targets.cpp
+++ b/clang/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";
}
OpenPOWER on IntegriCloud