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:
Rafael Espindola 2006-10-18 12:03:07 +00:00
parent b1c8802407
commit 5f1b698aeb
2 changed files with 5 additions and 3 deletions

View File

@ -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);

View File

@ -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()