Honour ByVal parameter attribute in llvm2cpp

llvm-svn: 48941
This commit is contained in:
Anton Korobeynikov 2008-03-29 11:15:01 +00:00
parent 4311ad2dae
commit a125be374e
1 changed files with 2 additions and 0 deletions

View File

@ -460,6 +460,8 @@ CppWriter::printParamAttrs(const PAListPtr &PAL, const std::string &name) {
Out << " | ParamAttr::NoReturn";
if (attrs & ParamAttr::NoUnwind)
Out << " | ParamAttr::NoUnwind";
if (attrs & ParamAttr::ByVal)
Out << " | ParamAttr::ByVal";
Out << ";";
nl(Out);
Out << "Attrs.push_back(PAWI);";