aboutsummaryrefslogtreecommitdiff
path: root/lib/Basic/Targets.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2010-01-30 12:55:11 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2010-01-30 12:55:11 +0000
commit09f52a696e97d5efc933ed413ddb01d8c537417c (patch)
tree7a19e9170555d1dc1c8a0709f8f94b7069a6a2fb /lib/Basic/Targets.cpp
parent500f189081b2edfcf3e14864c0df870d85701a6f (diff)
Fix alignment for msp430 integer types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94879 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Targets.cpp')
-rw-r--r--lib/Basic/Targets.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp
index 1d898726f9..926d78b04c 100644
--- a/lib/Basic/Targets.cpp
+++ b/lib/Basic/Targets.cpp
@@ -1671,13 +1671,10 @@ namespace {
public:
MSP430TargetInfo(const std::string& triple) : TargetInfo(triple) {
TLSSupported = false;
- IntWidth = 16;
- LongWidth = 32;
- LongLongWidth = 64;
- PointerWidth = 16;
- IntAlign = 8;
- LongAlign = LongLongAlign = 8;
- PointerAlign = 8;
+ IntWidth = 16; IntAlign = 16;
+ LongWidth = 32; LongLongWidth = 64;
+ LongAlign = LongLongAlign = 16;
+ PointerWidth = 16; PointerAlign = 16;
SizeType = UnsignedInt;
IntMaxType = SignedLong;
UIntMaxType = UnsignedLong;