diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-03-29 11:25:49 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-03-29 11:25:49 +0000 |
commit | 5f2e499520720b48a573008cde76c034b611ea4e (patch) | |
tree | 869564081838bd8d0d024c65991d13fe8bee599e | |
parent | e818717e0c9daab4d68fb54c11428eb72bb99bfc (diff) |
Honour another bunch of parameter attributes in llvm2cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48942 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/llvm2cpp/CppWriter.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/llvm2cpp/CppWriter.cpp b/tools/llvm2cpp/CppWriter.cpp index c18a22cbbb..f4ed2a460a 100644 --- a/tools/llvm2cpp/CppWriter.cpp +++ b/tools/llvm2cpp/CppWriter.cpp @@ -462,6 +462,14 @@ CppWriter::printParamAttrs(const PAListPtr &PAL, const std::string &name) { Out << " | ParamAttr::NoUnwind"; if (attrs & ParamAttr::ByVal) Out << " | ParamAttr::ByVal"; + if (attrs & ParamAttr::NoAlias) + Out << " | ParamAttr::NoAlias"; + if (attrs & ParamAttr::Nest) + Out << " | ParamAttr::Nest"; + if (attrs & ParamAttr::ReadNone) + Out << " | ParamAttr::ReadNone"; + if (attrs & ParamAttr::ReadOnly) + Out << " | ParamAttr::ReadOnly"; Out << ";"; nl(Out); Out << "Attrs.push_back(PAWI);"; |