From fe673d93511fef5aa4b1e275d00ea71ea4e94604 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 6 May 2005 06:53:07 +0000 Subject: [PATCH] add tail marker as a comment git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21739 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/CBackend/CBackend.cpp | 1 + lib/Target/CBackend/Writer.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 2cd5644bb15..be124b0501e 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -1542,6 +1542,7 @@ void CWriter::visitCallInst(CallInst &I) { // match exactly. // bool WroteCallee = false; + if (I.isTailCall()) Out << " /*tail*/ "; if (ConstantExpr *CE = dyn_cast(Callee)) if (CE->getOpcode() == Instruction::Cast) if (Function *RF = dyn_cast(CE->getOperand(0))) { diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index 2cd5644bb15..be124b0501e 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -1542,6 +1542,7 @@ void CWriter::visitCallInst(CallInst &I) { // match exactly. // bool WroteCallee = false; + if (I.isTailCall()) Out << " /*tail*/ "; if (ConstantExpr *CE = dyn_cast(Callee)) if (CE->getOpcode() == Instruction::Cast) if (Function *RF = dyn_cast(CE->getOperand(0))) {