diff options
author | Roman Divacky <rdivacky@freebsd.org> | 2011-01-06 08:27:10 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@freebsd.org> | 2011-01-06 08:27:10 +0000 |
commit | c81f2a2c7f83e64b3ef2b77030536290d0e2b350 (patch) | |
tree | ed4caa109e488508b69a40cab85709c047cab456 /lib/Basic/TargetInfo.cpp | |
parent | 914c9a61b7ef96ed259a464f20e51d166b5f68b0 (diff) |
PowerPC fixes.
Fix the width and align of bool type on Darwin to be 32bits
while keeping it 8 everywhere else.
Change the definition of va_list to default to SV4 ABI one
and let darwin subtarget override this.
Both changes submitted by Nathan Whitehorn and reviewed
by Rafael Espindola.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122956 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/TargetInfo.cpp')
-rw-r--r-- | lib/Basic/TargetInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Basic/TargetInfo.cpp b/lib/Basic/TargetInfo.cpp index 3828c5ae6b..17de01b4e1 100644 --- a/lib/Basic/TargetInfo.cpp +++ b/lib/Basic/TargetInfo.cpp @@ -26,6 +26,7 @@ TargetInfo::TargetInfo(const std::string &T) : Triple(T) { TLSSupported = true; NoAsmVariants = false; PointerWidth = PointerAlign = 32; + BoolWidth = BoolAlign = 8; IntWidth = IntAlign = 32; LongWidth = LongAlign = 32; LongLongWidth = LongLongAlign = 64; |