silence warnings in release build

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30631 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-09-27 18:29:38 +00:00
parent 79db5b7370
commit f38f543e01

View File

@ -4286,20 +4286,20 @@ SDOperand X86TargetLowering::LowerCALL(SDOperand Op, SelectionDAG &DAG) {
return LowerX86_64CCCCallTo(Op, DAG); return LowerX86_64CCCCallTo(Op, DAG);
else else
switch (CallingConv) { switch (CallingConv) {
case CallingConv::Fast: default:
assert(0 && "Unsupported calling convention");
case CallingConv::Fast:
if (EnableFastCC) { if (EnableFastCC) {
return LowerFastCCCallTo(Op, DAG, false); return LowerFastCCCallTo(Op, DAG, false);
} }
// Falls through // Falls through
case CallingConv::C: case CallingConv::C:
case CallingConv::CSRet: case CallingConv::CSRet:
return LowerCCCCallTo(Op, DAG); return LowerCCCCallTo(Op, DAG);
case CallingConv::X86_StdCall: case CallingConv::X86_StdCall:
return LowerStdCallCCCallTo(Op, DAG); return LowerStdCallCCCallTo(Op, DAG);
case CallingConv::X86_FastCall: case CallingConv::X86_FastCall:
return LowerFastCCCallTo(Op, DAG, true); return LowerFastCCCallTo(Op, DAG, true);
default:
assert(0 && "Unsupported calling convention");
} }
} }
@ -4421,22 +4421,22 @@ X86TargetLowering::LowerFORMAL_ARGUMENTS(SDOperand Op, SelectionDAG &DAG) {
return LowerX86_64CCCArguments(Op, DAG); return LowerX86_64CCCArguments(Op, DAG);
else else
switch(CC) { switch(CC) {
case CallingConv::Fast: default:
assert(0 && "Unsupported calling convention");
case CallingConv::Fast:
if (EnableFastCC) { if (EnableFastCC) {
return LowerFastCCArguments(Op, DAG); return LowerFastCCArguments(Op, DAG);
} }
// Falls through // Falls through
case CallingConv::C: case CallingConv::C:
case CallingConv::CSRet: case CallingConv::CSRet:
return LowerCCCArguments(Op, DAG); return LowerCCCArguments(Op, DAG);
case CallingConv::X86_StdCall: case CallingConv::X86_StdCall:
MF.getInfo<X86FunctionInfo>()->setDecorationStyle(StdCall); MF.getInfo<X86FunctionInfo>()->setDecorationStyle(StdCall);
return LowerStdCallCCArguments(Op, DAG); return LowerStdCallCCArguments(Op, DAG);
case CallingConv::X86_FastCall: case CallingConv::X86_FastCall:
MF.getInfo<X86FunctionInfo>()->setDecorationStyle(FastCall); MF.getInfo<X86FunctionInfo>()->setDecorationStyle(FastCall);
return LowerFastCallCCArguments(Op, DAG); return LowerFastCallCCArguments(Op, DAG);
default:
assert(0 && "Unsupported calling convention");
} }
} }