add tail marker as a comment
authorChris Lattner <sabre@nondot.org>
Fri, 6 May 2005 06:53:07 +0000 (06:53 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 6 May 2005 06:53:07 +0000 (06:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21739 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CBackend/CBackend.cpp
lib/Target/CBackend/Writer.cpp

index 2cd5644bb15b173d06e561df25fd10eb0ae4f9a5..be124b0501ef9a765e863d6300781eb1c58338c3 100644 (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))) {
index 2cd5644bb15b173d06e561df25fd10eb0ae4f9a5..be124b0501ef9a765e863d6300781eb1c58338c3 100644 (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))) {