diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-03-29 11:15:01 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-03-29 11:15:01 +0000 |
commit | e818717e0c9daab4d68fb54c11428eb72bb99bfc (patch) | |
tree | f209c603b968bb76804c928468e49a669a6224a8 | |
parent | 97ae12a98845c44807b4ee833d86c0b4d2521d05 (diff) | |
download | external_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.cpp | 2 |
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);"; |