summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-03-29 11:25:49 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-03-29 11:25:49 +0000
commit5f2e499520720b48a573008cde76c034b611ea4e (patch)
tree869564081838bd8d0d024c65991d13fe8bee599e
parente818717e0c9daab4d68fb54c11428eb72bb99bfc (diff)
downloadllvm-5f2e499520720b48a573008cde76c034b611ea4e.tar.gz
llvm-5f2e499520720b48a573008cde76c034b611ea4e.tar.bz2
llvm-5f2e499520720b48a573008cde76c034b611ea4e.tar.xz
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.cpp8
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);";