diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-11 02:44:20 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-11 02:44:20 +0000 |
| commit | a472f66dd0ec371399ed5d52271dff4f58833eb0 (patch) | |
| tree | 7552d0bd1980e118653eaa9160d1119ec6f26287 /llvm/lib/Target/MSIL/MSILWriter.cpp | |
| parent | d3f622e0d5216247d773532bed0a9ec47d021f07 (diff) | |
| download | bcm5719-llvm-a472f66dd0ec371399ed5d52271dff4f58833eb0.tar.gz bcm5719-llvm-a472f66dd0ec371399ed5d52271dff4f58833eb0.zip | |
For PR1146:
Put the parameter attributes in their own ParamAttr name space. Adjust the
rest of llvm as a result.
llvm-svn: 35877
Diffstat (limited to 'llvm/lib/Target/MSIL/MSILWriter.cpp')
| -rw-r--r-- | llvm/lib/Target/MSIL/MSILWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/MSIL/MSILWriter.cpp b/llvm/lib/Target/MSIL/MSILWriter.cpp index 3aa05e4db8a..610ab033652 100644 --- a/llvm/lib/Target/MSIL/MSILWriter.cpp +++ b/llvm/lib/Target/MSIL/MSILWriter.cpp @@ -1133,7 +1133,7 @@ void MSILWriter::printStaticInitializerList() { 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 @@ void MSILWriter::printFunction(const Function& F) { 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); } |

