aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm2cpp/CppWriter.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-02-19 21:38:47 +0000
committerDale Johannesen <dalej@apple.com>2008-02-19 21:38:47 +0000
commitf4666f59fc17a4e5c4764e56220d1c5888fd8f58 (patch)
tree9fbe3f267ddd1719fd5b3e0f95733e786c07fa5c /tools/llvm2cpp/CppWriter.cpp
parent79f659180225d802a5aa875ca6564c59f281a6d8 (diff)
downloadexternal_llvm-f4666f59fc17a4e5c4764e56220d1c5888fd8f58.zip
external_llvm-f4666f59fc17a4e5c4764e56220d1c5888fd8f58.tar.gz
external_llvm-f4666f59fc17a4e5c4764e56220d1c5888fd8f58.tar.bz2
Expand ParameterAttributes to 32 bits (in preparation
for adding alignment info, not there yet). Clean up interfaces to reference ParameterAttributes consistently. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47342 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm2cpp/CppWriter.cpp')
-rw-r--r--tools/llvm2cpp/CppWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm2cpp/CppWriter.cpp b/tools/llvm2cpp/CppWriter.cpp
index d30968e..81911fd 100644
--- a/tools/llvm2cpp/CppWriter.cpp
+++ b/tools/llvm2cpp/CppWriter.cpp
@@ -447,7 +447,7 @@ CppWriter::printParamAttrs(const ParamAttrsList* PAL, const std::string &name) {
Out << "ParamAttrsWithIndex PAWI;"; nl(Out);
for (unsigned i = 0; i < PAL->size(); ++i) {
uint16_t index = PAL->getParamIndex(i);
- uint16_t attrs = PAL->getParamAttrs(index);
+ ParameterAttributes attrs = PAL->getParamAttrs(index);
Out << "PAWI.index = " << index << "; PAWI.attrs = 0 ";
if (attrs & ParamAttr::SExt)
Out << " | ParamAttr::SExt";