mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-19 19:30:10 +00:00
Teach llvm2cpp about packed structure types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35899 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
07441666b6
commit
46fea10881
@ -515,7 +515,8 @@ CppWriter::printTypeInternal(const Type* Ty) {
|
|||||||
nl(Out);
|
nl(Out);
|
||||||
}
|
}
|
||||||
Out << "StructType* " << typeName << " = StructType::get("
|
Out << "StructType* " << typeName << " = StructType::get("
|
||||||
<< typeName << "_fields);";
|
<< typeName << "_fields, /*isPacked=*/"
|
||||||
|
<< (ST->isPacked() ? "true" : "false") << ");";
|
||||||
nl(Out);
|
nl(Out);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user