Fix the definition of __builtin_va_list on PPC, which was set to the V4 ABI, not the

darwin or AIX abis.  This fixes PR2904.

llvm-svn: 58222
This commit is contained in:
Chris Lattner 2008-10-27 01:11:29 +00:00
parent f5ba827d41
commit 69f9bc24f4
1 changed files with 4 additions and 2 deletions

View File

@ -220,13 +220,15 @@ public:
NumRecords = clang::PPC::LastTSBuiltin-Builtin::FirstTSBuiltin;
}
virtual const char *getVAListDeclaration() const {
return "typedef struct __va_list_tag {"
return "typedef char* __builtin_va_list;";
// This is the right definition for ABI/V4: System V.4/eabi.
/*return "typedef struct __va_list_tag {"
" unsigned char gpr;"
" unsigned char fpr;"
" unsigned short reserved;"
" void* overflow_arg_area;"
" void* reg_save_area;"
"} __builtin_va_list[1];";
"} __builtin_va_list[1];";*/
}
virtual const char *getTargetPrefix() const {
return "ppc";