From 76520191abf157dfa2bcb473406193ab362480b6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 3 May 2007 22:34:03 +0000 Subject: Encoding calling conv info in call/invoke instrs, tree add now round trips completely git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36707 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bitcode/Writer/BitcodeWriter.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/Bitcode/Writer/BitcodeWriter.cpp') diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp index 270ded55cb..6dcc37296c 100644 --- a/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -571,7 +571,7 @@ static void WriteInstruction(const Instruction &I, ValueEnumerator &VE, break; case Instruction::Invoke: { Code = bitc::FUNC_CODE_INST_INVOKE; - // FIXME: param attrs + Vals.push_back(cast(I).getCallingConv()); Vals.push_back(VE.getTypeID(I.getOperand(0)->getType())); Vals.push_back(VE.getValueID(I.getOperand(0))); // callee Vals.push_back(VE.getValueID(I.getOperand(1))); // normal @@ -647,7 +647,8 @@ static void WriteInstruction(const Instruction &I, ValueEnumerator &VE, break; case Instruction::Call: { Code = bitc::FUNC_CODE_INST_CALL; - // FIXME: param attrs + Vals.push_back((cast(I).getCallingConv() << 1) | + cast(I).isTailCall()); Vals.push_back(VE.getTypeID(I.getOperand(0)->getType())); Vals.push_back(VE.getValueID(I.getOperand(0))); // callee -- cgit v1.2.3-18-g5258