mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-31 09:32:11 +00:00
Fix some issues with param attrs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35894 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6abd3daae1
commit
a9297b1a09
@ -460,8 +460,10 @@ CppWriter::printTypeInternal(const Type* Ty) {
|
|||||||
}
|
}
|
||||||
const ParamAttrsList *PAL = FT->getParamAttrs();
|
const ParamAttrsList *PAL = FT->getParamAttrs();
|
||||||
Out << "ParamAttrsList *" << typeName << "_PAL = 0;";
|
Out << "ParamAttrsList *" << typeName << "_PAL = 0;";
|
||||||
|
nl(Out);
|
||||||
if (PAL && !PAL->empty()) {
|
if (PAL && !PAL->empty()) {
|
||||||
Out << typeName << "_PAL = new ParamAttrsList();";
|
Out << typeName << "_PAL = new ParamAttrsList();";
|
||||||
|
nl(Out);
|
||||||
for (unsigned i = 0; i < PAL->size(); ++i) {
|
for (unsigned i = 0; i < PAL->size(); ++i) {
|
||||||
uint16_t index = PAL->getParamIndex(i);
|
uint16_t index = PAL->getParamIndex(i);
|
||||||
uint16_t attrs = PAL->getParamAttrs(index);
|
uint16_t attrs = PAL->getParamAttrs(index);
|
||||||
@ -479,6 +481,7 @@ CppWriter::printTypeInternal(const Type* Ty) {
|
|||||||
if (attrs & ParamAttr::NoUnwind)
|
if (attrs & ParamAttr::NoUnwind)
|
||||||
Out << " | ParamAttr::NoUnwind";
|
Out << " | ParamAttr::NoUnwind";
|
||||||
Out << ");";
|
Out << ");";
|
||||||
|
nl(Out);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bool isForward = printTypeInternal(FT->getReturnType());
|
bool isForward = printTypeInternal(FT->getReturnType());
|
||||||
@ -490,7 +493,7 @@ CppWriter::printTypeInternal(const Type* Ty) {
|
|||||||
Out << ",";
|
Out << ",";
|
||||||
nl(Out) << "/*Params=*/" << typeName << "_args,";
|
nl(Out) << "/*Params=*/" << typeName << "_args,";
|
||||||
nl(Out) << "/*isVarArg=*/" << (FT->isVarArg() ? "true" : "false") ;
|
nl(Out) << "/*isVarArg=*/" << (FT->isVarArg() ? "true" : "false") ;
|
||||||
nl(Out) << "/*ParamAttrs=/" << typeName << "_PAL" << ");";
|
nl(Out) << "/*ParamAttrs=*/" << typeName << "_PAL" << ");";
|
||||||
out();
|
out();
|
||||||
nl(Out);
|
nl(Out);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user