forked from OSchip/llvm-project
Honour ByVal parameter attribute in llvm2cpp
llvm-svn: 48941
This commit is contained in:
parent
4311ad2dae
commit
a125be374e
|
@ -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);";
|
||||
|
|
Loading…
Reference in New Issue