[cfe-commits] r140144 - /cfe/trunk/lib/Basic/Targets.cpp
Ivan Krasin
krasin at chromium.org
Tue Sep 20 07:56:54 PDT 2011
Author: krasin
Date: Tue Sep 20 09:56:54 2011
New Revision: 140144
URL: http://llvm.org/viewvc/llvm-project?rev=140144&view=rev
Log:
Clarify PNaCl target characteristics: set LongDoubleWidth, PtrDiffType, IntPtrType,
change __builtin_va_list to from a structure to int[4] (same alignment
and size, but with a simpler representation). Patch by David Meyer!
Modified:
cfe/trunk/lib/Basic/Targets.cpp
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=140144&r1=140143&r2=140144&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Tue Sep 20 09:56:54 2011
@@ -2940,9 +2940,12 @@
this->IntMaxType = TargetInfo::SignedLongLong;
this->UIntMaxType = TargetInfo::UnsignedLongLong;
this->Int64Type = TargetInfo::SignedLongLong;
- this->SizeType = TargetInfo::UnsignedInt;
this->DoubleAlign = 64;
+ this->LongDoubleWidth = 64;
this->LongDoubleAlign = 64;
+ this->SizeType = TargetInfo::UnsignedInt;
+ this->PtrDiffType = TargetInfo::SignedInt;
+ this->IntPtrType = TargetInfo::SignedInt;
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";
}
@@ -2971,12 +2974,7 @@
unsigned &NumRecords) const {
}
virtual const char *getVAListDeclaration() const {
- return "typedef struct __va_list_tag {"
- " void* ptr;"
- " void* padding1;"
- " void* padding2;"
- " void* padding3;"
- "} __builtin_va_list[1];";
+ return "typedef int __builtin_va_list[4];";
}
virtual void getGCCRegNames(const char * const *&Names,
unsigned &NumNames) const;
More information about the cfe-commits
mailing list