[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
Chris Lattner
sabre at nondot.org
Thu May 3 20:41:57 PDT 2007
Changes in directory llvm/lib/Bitcode/Writer:
BitcodeWriter.cpp updated: 1.27 -> 1.28
---
Log message:
encode and read param attrs along with function type. WE can now roundtrip Olden/voronoi loslessly
---
Diffs of the changes: (+2 -2)
BitcodeWriter.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff -u llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:1.27 llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:1.28
--- llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:1.27 Thu May 3 22:14:09 2007
+++ llvm/lib/Bitcode/Writer/BitcodeWriter.cpp Thu May 3 22:41:34 2007
@@ -145,11 +145,11 @@
case Type::FunctionTyID: {
const FunctionType *FT = cast<FunctionType>(T);
- // FUNCTION: [isvararg, #pararms, paramty x N]
+ // FUNCTION: [isvararg, attrid, #pararms, paramty x N]
Code = bitc::TYPE_CODE_FUNCTION;
TypeVals.push_back(FT->isVarArg());
+ TypeVals.push_back(VE.getParamAttrID(FT->getParamAttrs()));
TypeVals.push_back(VE.getTypeID(FT->getReturnType()));
- // FIXME: PARAM ATTR ID!
TypeVals.push_back(FT->getNumParams());
for (unsigned i = 0, e = FT->getNumParams(); i != e; ++i)
TypeVals.push_back(VE.getTypeID(FT->getParamType(i)));
More information about the llvm-commits
mailing list