mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-20 14:29:27 +00:00
"the one true solution for compatibility with GCC 3.3+"
... or so I hope git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8454 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b787e13e73
commit
4b2a71d621
@ -1133,7 +1133,7 @@ void CWriter::visitCallInst(CallInst &I) {
|
|||||||
switch (ID) {
|
switch (ID) {
|
||||||
default: assert(0 && "Unknown LLVM intrinsic!");
|
default: assert(0 && "Unknown LLVM intrinsic!");
|
||||||
case LLVMIntrinsic::va_start:
|
case LLVMIntrinsic::va_start:
|
||||||
Out << "va_start((va_list)*";
|
Out << "va_start(*(va_list*)";
|
||||||
writeOperand(I.getOperand(1));
|
writeOperand(I.getOperand(1));
|
||||||
Out << ", ";
|
Out << ", ";
|
||||||
// Output the last argument to the enclosing function...
|
// Output the last argument to the enclosing function...
|
||||||
@ -1141,12 +1141,12 @@ void CWriter::visitCallInst(CallInst &I) {
|
|||||||
Out << ")";
|
Out << ")";
|
||||||
return;
|
return;
|
||||||
case LLVMIntrinsic::va_end:
|
case LLVMIntrinsic::va_end:
|
||||||
Out << "va_end((va_list)*";
|
Out << "va_end(*(va_list*)";
|
||||||
writeOperand(I.getOperand(1));
|
writeOperand(I.getOperand(1));
|
||||||
Out << ")";
|
Out << ")";
|
||||||
return;
|
return;
|
||||||
case LLVMIntrinsic::va_copy:
|
case LLVMIntrinsic::va_copy:
|
||||||
Out << "va_copy((va_list)*";
|
Out << "va_copy(*(va_list*)";
|
||||||
writeOperand(I.getOperand(1));
|
writeOperand(I.getOperand(1));
|
||||||
Out << ", (va_list)";
|
Out << ", (va_list)";
|
||||||
writeOperand(I.getOperand(2));
|
writeOperand(I.getOperand(2));
|
||||||
|
@ -1133,7 +1133,7 @@ void CWriter::visitCallInst(CallInst &I) {
|
|||||||
switch (ID) {
|
switch (ID) {
|
||||||
default: assert(0 && "Unknown LLVM intrinsic!");
|
default: assert(0 && "Unknown LLVM intrinsic!");
|
||||||
case LLVMIntrinsic::va_start:
|
case LLVMIntrinsic::va_start:
|
||||||
Out << "va_start((va_list)*";
|
Out << "va_start(*(va_list*)";
|
||||||
writeOperand(I.getOperand(1));
|
writeOperand(I.getOperand(1));
|
||||||
Out << ", ";
|
Out << ", ";
|
||||||
// Output the last argument to the enclosing function...
|
// Output the last argument to the enclosing function...
|
||||||
@ -1141,12 +1141,12 @@ void CWriter::visitCallInst(CallInst &I) {
|
|||||||
Out << ")";
|
Out << ")";
|
||||||
return;
|
return;
|
||||||
case LLVMIntrinsic::va_end:
|
case LLVMIntrinsic::va_end:
|
||||||
Out << "va_end((va_list)*";
|
Out << "va_end(*(va_list*)";
|
||||||
writeOperand(I.getOperand(1));
|
writeOperand(I.getOperand(1));
|
||||||
Out << ")";
|
Out << ")";
|
||||||
return;
|
return;
|
||||||
case LLVMIntrinsic::va_copy:
|
case LLVMIntrinsic::va_copy:
|
||||||
Out << "va_copy((va_list)*";
|
Out << "va_copy(*(va_list*)";
|
||||||
writeOperand(I.getOperand(1));
|
writeOperand(I.getOperand(1));
|
||||||
Out << ", (va_list)";
|
Out << ", (va_list)";
|
||||||
writeOperand(I.getOperand(2));
|
writeOperand(I.getOperand(2));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user