mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-13 15:37:24 +00:00
implement CallingConv::Fast as CallingConv::C
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31034 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b1c8802407
commit
5f1b698aeb
@ -294,7 +294,9 @@ public:
|
||||
static SDOperand LowerCALL(SDOperand Op, SelectionDAG &DAG) {
|
||||
SDOperand Chain = Op.getOperand(0);
|
||||
unsigned CallConv = cast<ConstantSDNode>(Op.getOperand(1))->getValue();
|
||||
assert(CallConv == CallingConv::C && "unknown calling convention");
|
||||
assert((CallConv == CallingConv::C ||
|
||||
CallConv == CallingConv::Fast)
|
||||
&& "unknown calling convention");
|
||||
bool isVarArg = cast<ConstantSDNode>(Op.getOperand(2))->getValue() != 0;
|
||||
bool isTailCall = cast<ConstantSDNode>(Op.getOperand(3))->getValue() != 0;
|
||||
SDOperand Callee = Op.getOperand(4);
|
||||
|
@ -2,9 +2,9 @@
|
||||
void %f() {
|
||||
entry:
|
||||
call void %g( int 1, int 2, int 3, int 4 )
|
||||
call void %h()
|
||||
call fastcc void %h()
|
||||
ret void
|
||||
}
|
||||
|
||||
declare void %g(int, int, int, int)
|
||||
declare void %h()
|
||||
declare fastcc void %h()
|
||||
|
Loading…
x
Reference in New Issue
Block a user