Changes in directory llvm/lib/Target/MSIL:
MSILWriter.cpp updated: 1.2 -> 1.3 --- Log message: For PR1146: http://llvm.org/PR1146 : Put the parameter attributes in their own ParamAttr name space. Adjust the rest of llvm as a result. --- Diffs of the changes: (+2 -2) MSILWriter.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/lib/Target/MSIL/MSILWriter.cpp diff -u llvm/lib/Target/MSIL/MSILWriter.cpp:1.2 llvm/lib/Target/MSIL/MSILWriter.cpp:1.3 --- llvm/lib/Target/MSIL/MSILWriter.cpp:1.2 Mon Apr 9 01:17:21 2007 +++ llvm/lib/Target/MSIL/MSILWriter.cpp Tue Apr 10 21:44:19 2007 @@ -1133,7 +1133,7 @@ void MSILWriter::printFunction(const Function& F) { const FunctionType* FTy = F.getFunctionType(); const ParamAttrsList *Attrs = FTy->getParamAttrs(); - bool isSigned = Attrs && Attrs->paramHasAttr(0, SExtAttribute); + bool isSigned = Attrs && Attrs->paramHasAttr(0, ParamAttr::SExt); Out << "\n.method static "; Out << (F.hasInternalLinkage() ? "private " : "public "); if (F.isVarArg()) Out << "vararg "; @@ -1144,7 +1144,7 @@ unsigned ArgIdx = 1; for (Function::const_arg_iterator I = F.arg_begin(), E = F.arg_end(); I!=E; ++I, ++ArgIdx) { - isSigned = Attrs && Attrs->paramHasAttr(ArgIdx, SExtAttribute); + isSigned = Attrs && Attrs->paramHasAttr(ArgIdx, ParamAttr::SExt); if (I!=F.arg_begin()) Out << ", "; Out << getTypeName(I->getType(),isSigned) << getValueName(I); } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits