aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-03-29 11:15:01 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-03-29 11:15:01 +0000
commite818717e0c9daab4d68fb54c11428eb72bb99bfc (patch)
treef209c603b968bb76804c928468e49a669a6224a8
parent97ae12a98845c44807b4ee833d86c0b4d2521d05 (diff)
downloadexternal_llvm-e818717e0c9daab4d68fb54c11428eb72bb99bfc.zip
external_llvm-e818717e0c9daab4d68fb54c11428eb72bb99bfc.tar.gz
external_llvm-e818717e0c9daab4d68fb54c11428eb72bb99bfc.tar.bz2
Honour ByVal parameter attribute in llvm2cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48941 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--tools/llvm2cpp/CppWriter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/llvm2cpp/CppWriter.cpp b/tools/llvm2cpp/CppWriter.cpp
index a10fec0..c18a22c 100644
--- a/tools/llvm2cpp/CppWriter.cpp
+++ b/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);";