[llvm-commits] CVS: llvm/tools/llvm2cpp/CppWriter.cpp
Reid Spencer
reid at x10sys.com
Wed Apr 11 03:01:50 PDT 2007
Changes in directory llvm/tools/llvm2cpp:
CppWriter.cpp updated: 1.43 -> 1.44
---
Log message:
Fix some issues with param attrs.
---
Diffs of the changes: (+4 -1)
CppWriter.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)
Index: llvm/tools/llvm2cpp/CppWriter.cpp
diff -u llvm/tools/llvm2cpp/CppWriter.cpp:1.43 llvm/tools/llvm2cpp/CppWriter.cpp:1.44
--- llvm/tools/llvm2cpp/CppWriter.cpp:1.43 Wed Apr 11 04:54:08 2007
+++ llvm/tools/llvm2cpp/CppWriter.cpp Wed Apr 11 05:01:32 2007
@@ -460,8 +460,10 @@
}
const ParamAttrsList *PAL = FT->getParamAttrs();
Out << "ParamAttrsList *" << typeName << "_PAL = 0;";
+ nl(Out);
if (PAL && !PAL->empty()) {
Out << typeName << "_PAL = new ParamAttrsList();";
+ nl(Out);
for (unsigned i = 0; i < PAL->size(); ++i) {
uint16_t index = PAL->getParamIndex(i);
uint16_t attrs = PAL->getParamAttrs(index);
@@ -479,6 +481,7 @@
if (attrs & ParamAttr::NoUnwind)
Out << " | ParamAttr::NoUnwind";
Out << ");";
+ nl(Out);
}
}
bool isForward = printTypeInternal(FT->getReturnType());
@@ -490,7 +493,7 @@
Out << ",";
nl(Out) << "/*Params=*/" << typeName << "_args,";
nl(Out) << "/*isVarArg=*/" << (FT->isVarArg() ? "true" : "false") ;
- nl(Out) << "/*ParamAttrs=/" << typeName << "_PAL" << ");";
+ nl(Out) << "/*ParamAttrs=*/" << typeName << "_PAL" << ");";
out();
nl(Out);
break;
More information about the llvm-commits
mailing list