Teach llvm2cpp about packed structure types.

llvm-svn: 35899
This commit is contained in:
Reid Spencer 2007-04-11 12:41:49 +00:00
parent ff6e0eda94
commit 56ea4e8ad3
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}