forked from OSchip/llvm-project
Teach llvm2cpp about packed structure types.
llvm-svn: 35899
This commit is contained in:
parent
ff6e0eda94
commit
56ea4e8ad3
|
@ -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…
Reference in New Issue