summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic
diff options
context:
space:
mode:
authorJan Wen Voung <jvoung@google.com>2014-01-15 21:42:41 +0000
committerJan Wen Voung <jvoung@google.com>2014-01-15 21:42:41 +0000
commit1f9c4ee4644c117358f31c99d830f9fed7380f89 (patch)
treedf09ad94cf952c1bb80b82ce78c374934227963f /clang/lib/Basic
parenteba44ea5339965143cc13522feda4d42b35b3751 (diff)
downloadbcm5719-llvm-1f9c4ee4644c117358f31c99d830f9fed7380f89.tar.gz
bcm5719-llvm-1f9c4ee4644c117358f31c99d830f9fed7380f89.zip
Ensure i686-nacl long long is aligned 8 bytes (like malign-double)
Set NaCl OSTargetInfo to have LongLongAlign = 64. Otherwise, it will pick up the setting of 32 from X86_32TargetInfo. llvm-svn: 199335
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 9ce333d4af1..6a3d57b405b 100644
--- a/clang/lib/Basic/Targets.cpp
+++ b/clang/lib/Basic/Targets.cpp
@@ -619,6 +619,8 @@ public:
this->DoubleAlign = 64;
this->LongDoubleWidth = 64;
this->LongDoubleAlign = 64;
+ this->LongLongWidth = 64;
+ this->LongLongAlign = 64;
this->SizeType = TargetInfo::UnsignedInt;
this->PtrDiffType = TargetInfo::SignedInt;
this->IntPtrType = TargetInfo::SignedInt;
OpenPOWER on IntegriCloud