summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-05-06 06:53:07 +0000
committerChris Lattner <sabre@nondot.org>2005-05-06 06:53:07 +0000
commit561b7eb9e153060f5777dda0b8f470da187ea27a (patch)
treeab1c988cb0a982bb27ebe8b38ad2a5ee1369b54e
parentec7773e9e8798e2317add80a674514e00f9ef1c8 (diff)
downloadbcm5719-llvm-561b7eb9e153060f5777dda0b8f470da187ea27a.tar.gz
bcm5719-llvm-561b7eb9e153060f5777dda0b8f470da187ea27a.zip
add tail marker as a comment
llvm-svn: 21739
-rw-r--r--llvm/lib/Target/CBackend/Writer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/CBackend/Writer.cpp b/llvm/lib/Target/CBackend/Writer.cpp
index 2cd5644bb15..be124b0501e 100644
--- a/llvm/lib/Target/CBackend/Writer.cpp
+++ b/llvm/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<ConstantExpr>(Callee))
if (CE->getOpcode() == Instruction::Cast)
if (Function *RF = dyn_cast<Function>(CE->getOperand(0))) {
OpenPOWER on IntegriCloud