summaryrefslogtreecommitdiffstats
path: root/llvm/tools
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
commit08bae57469fa14b55f806fcde8fddfe6a1b9eb3e (patch)
tree2889f0d29494b5981cb1aa4fd8a0af055b437229 /llvm/tools
parenta125be374e2e5e6228df01a8cac665e3a985ba13 (diff)
downloadbcm5719-llvm-08bae57469fa14b55f806fcde8fddfe6a1b9eb3e.tar.gz
bcm5719-llvm-08bae57469fa14b55f806fcde8fddfe6a1b9eb3e.zip
Honour another bunch of parameter attributes in llvm2cpp
llvm-svn: 48942
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/llvm2cpp/CppWriter.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/tools/llvm2cpp/CppWriter.cpp b/llvm/tools/llvm2cpp/CppWriter.cpp
index c18a22cbbb5..f4ed2a460a5 100644
--- a/llvm/tools/llvm2cpp/CppWriter.cpp
+++ b/llvm/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);";
OpenPOWER on IntegriCloud