Fix "long double" and __SIZE_TYPE__ on powerpc.
Fixes PR11867. Patch from Jeremy Huddleston! llvm-svn: 149285
This commit is contained in:
parent
56435b49e0
commit
aa11e6e28c
|
@ -570,7 +570,10 @@ class PPCTargetInfo : public TargetInfo {
|
|||
static const char * const GCCRegNames[];
|
||||
static const TargetInfo::GCCRegAlias GCCRegAliases[];
|
||||
public:
|
||||
PPCTargetInfo(const std::string& triple) : TargetInfo(triple) {}
|
||||
PPCTargetInfo(const std::string& triple) : TargetInfo(triple) {
|
||||
LongDoubleWidth = LongDoubleAlign = 128;
|
||||
LongDoubleFormat = &llvm::APFloat::PPCDoubleDouble;
|
||||
}
|
||||
|
||||
virtual void getTargetBuiltins(const Builtin::Info *&Records,
|
||||
unsigned &NumRecords) const {
|
||||
|
@ -854,6 +857,7 @@ public:
|
|||
"i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32";
|
||||
|
||||
switch (getTriple().getOS()) {
|
||||
case llvm::Triple::Linux:
|
||||
case llvm::Triple::FreeBSD:
|
||||
case llvm::Triple::NetBSD:
|
||||
SizeType = UnsignedInt;
|
||||
|
|
Loading…
Reference in New Issue