From a125be374e2e5e6228df01a8cac665e3a985ba13 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Sat, 29 Mar 2008 11:15:01 +0000 Subject: [PATCH] Honour ByVal parameter attribute in llvm2cpp llvm-svn: 48941 --- llvm/tools/llvm2cpp/CppWriter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/tools/llvm2cpp/CppWriter.cpp b/llvm/tools/llvm2cpp/CppWriter.cpp index a10fec00fd3b..c18a22cbbb54 100644 --- a/llvm/tools/llvm2cpp/CppWriter.cpp +++ b/llvm/tools/llvm2cpp/CppWriter.cpp @@ -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);";