Support opaque type printing a little bit at least

llvm-svn: 2748
This commit is contained in:
Chris Lattner 2002-05-26 20:17:54 +00:00
parent 3611a1e91c
commit 365806ddf7

View File

@ -481,6 +481,8 @@ ostream &AssemblyWriter::printTypeAtLeastOneLevel(const Type *Ty) {
} else if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) {
Out << "[" << ATy->getNumElements() << " x ";
printType(ATy->getElementType()) << "]";
} else if (OpaqueType *OTy = dyn_cast<OpaqueType>(Ty)) {
Out << OTy->getDescription();
} else {
assert(Ty->isPrimitiveType() && "Unknown derived type!");
printType(Ty);