[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu May 5 23:13:45 PDT 2005
Changes in directory llvm/lib/Bytecode/Reader:
Reader.cpp updated: 1.159 -> 1.160
---
Log message:
add bytecode reader support for tail calls
---
Diffs of the changes: (+2 -0)
Reader.cpp | 2 ++
1 files changed, 2 insertions(+)
Index: llvm/lib/Bytecode/Reader/Reader.cpp
diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.159 llvm/lib/Bytecode/Reader/Reader.cpp:1.160
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.159 Thu May 5 17:32:13 2005
+++ llvm/lib/Bytecode/Reader/Reader.cpp Fri May 6 01:13:32 2005
@@ -720,6 +720,7 @@
break;
}
+ case 61: // tail call
case Instruction::Call: {
if (Oprnds.size() == 0)
error("Invalid call instruction encountered!");
@@ -765,6 +766,7 @@
}
Result = new CallInst(F, Params);
+ if (Opcode == 61) cast<CallInst>(Result)->setTailCall(true);
break;
}
case Instruction::Invoke: {
More information about the llvm-commits
mailing list