diff options
author | Chris Lattner <sabre@nondot.org> | 2007-05-03 22:34:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-05-03 22:34:03 +0000 |
commit | 4704527576f50826b8f46d6281d6646888278b15 (patch) | |
tree | 594349d734916c00f2fbb8e3a214782dc4a23737 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | c1d86cda8c00163874a3d13b64888c842459de75 (diff) | |
download | llvm-4704527576f50826b8f46d6281d6646888278b15.zip llvm-4704527576f50826b8f46d6281d6646888278b15.tar.gz llvm-4704527576f50826b8f46d6281d6646888278b15.tar.bz2 |
Encoding calling conv info in call/invoke instrs, tree add now round trips completely
llvm-svn: 36707
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 270ded5..6dcc372 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/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<InvokeInst>(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<CallInst>(I).getCallingConv() << 1) | + cast<CallInst>(I).isTailCall()); Vals.push_back(VE.getTypeID(I.getOperand(0)->getType())); Vals.push_back(VE.getValueID(I.getOperand(0))); // callee |