mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +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);
|
||||
}
|
||||
Out << "StructType* " << typeName << " = StructType::get("
|
||||
<< typeName << "_fields);";
|
||||
<< typeName << "_fields, /*isPacked=*/"
|
||||
<< (ST->isPacked() ? "true" : "false") << ");";
|
||||
nl(Out);
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user