add bytecode reader support for tail calls

llvm-svn: 21727
This commit is contained in:
Chris Lattner
2005-05-06 06:13:34 +00:00
parent abb5bd78ca
commit fb6f1746f4
2 changed files with 6 additions and 1 deletions

View File

@@ -720,6 +720,7 @@ void BytecodeReader::ParseInstruction(std::vector<unsigned> &Oprnds,
break;
}
case 61: // tail call
case Instruction::Call: {
if (Oprnds.size() == 0)
error("Invalid call instruction encountered!");
@@ -765,6 +766,7 @@ void BytecodeReader::ParseInstruction(std::vector<unsigned> &Oprnds,
}
Result = new CallInst(F, Params);
if (Opcode == 61) cast<CallInst>(Result)->setTailCall(true);
break;
}
case Instruction::Invoke: {