diff options
author | Chris Lattner <sabre@nondot.org> | 2005-05-06 06:13:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-05-06 06:13:34 +0000 |
commit | fb6f1746f4c81f8c11abd55142d326a6189799fa (patch) | |
tree | 1fdbfb7123df0ecd40be1e5477a847a7be9e72d6 /llvm/lib/Bytecode/Reader | |
parent | abb5bd78ca4b6aa1fa3f454885a56f16a074df72 (diff) | |
download | bcm5719-llvm-fb6f1746f4c81f8c11abd55142d326a6189799fa.tar.gz bcm5719-llvm-fb6f1746f4c81f8c11abd55142d326a6189799fa.zip |
add bytecode reader support for tail calls
llvm-svn: 21727
Diffstat (limited to 'llvm/lib/Bytecode/Reader')
-rw-r--r-- | llvm/lib/Bytecode/Reader/Reader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp index 82a73fa5998..24875e42fd1 100644 --- a/llvm/lib/Bytecode/Reader/Reader.cpp +++ b/llvm/lib/Bytecode/Reader/Reader.cpp @@ -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: { |