add tail marker as a comment

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21739 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-05-06 06:53:07 +00:00
parent a471e045b7
commit fe673d9351
2 changed files with 2 additions and 0 deletions

View File

@ -1542,6 +1542,7 @@ void CWriter::visitCallInst(CallInst &I) {
// match exactly.
//
bool WroteCallee = false;
if (I.isTailCall()) Out << " /*tail*/ ";
if (ConstantExpr *CE = dyn_cast<ConstantExpr>(Callee))
if (CE->getOpcode() == Instruction::Cast)
if (Function *RF = dyn_cast<Function>(CE->getOperand(0))) {

View File

@ -1542,6 +1542,7 @@ void CWriter::visitCallInst(CallInst &I) {
// match exactly.
//
bool WroteCallee = false;
if (I.isTailCall()) Out << " /*tail*/ ";
if (ConstantExpr *CE = dyn_cast<ConstantExpr>(Callee))
if (CE->getOpcode() == Instruction::Cast)
if (Function *RF = dyn_cast<Function>(CE->getOperand(0))) {