The only target that uses this code (v9) always has argsOnStackHaveFixedSize

set to true (obviously)

llvm-svn: 15692
This commit is contained in:
Chris Lattner 2004-08-12 18:06:35 +00:00
parent b0ac422db5
commit eb02313413
1 changed files with 1 additions and 16 deletions

View File

@ -332,22 +332,7 @@ ComputeMaxOptionalArgsSize(const TargetMachine& target, const Function *F,
if (numExtra <= 0)
continue;
unsigned sizeForThisCall;
if (frameInfo.argsOnStackHaveFixedSize())
{
int argSize = frameInfo.getSizeOfEachArgOnStack();
sizeForThisCall = numExtra * (unsigned) argSize;
}
else
{
assert(0 && "UNTESTED CODE: Size per stack argument is not "
"fixed on this architecture: use actual arg sizes to "
"compute MaxOptionalArgsSize");
sizeForThisCall = 0;
for (unsigned i = 0; i < numOperands; ++i)
sizeForThisCall += target.getTargetData().getTypeSize(callInst->
getOperand(i)->getType());
}
unsigned sizeForThisCall = numExtra * 8;
if (maxSize < sizeForThisCall)
maxSize = sizeForThisCall;