From: Chris Lattner Date: Sun, 26 May 2002 20:17:54 +0000 (+0000) Subject: Support opaque type printing a little bit at least X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9e77f77687bdeece2a66ed9103379f6da3bbc46e;p=oota-llvm.git Support opaque type printing a little bit at least git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2748 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 527df4f0a17..fe66575faa0 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -481,6 +481,8 @@ ostream &AssemblyWriter::printTypeAtLeastOneLevel(const Type *Ty) { } else if (ArrayType *ATy = dyn_cast(Ty)) { Out << "[" << ATy->getNumElements() << " x "; printType(ATy->getElementType()) << "]"; + } else if (OpaqueType *OTy = dyn_cast(Ty)) { + Out << OTy->getDescription(); } else { assert(Ty->isPrimitiveType() && "Unknown derived type!"); printType(Ty);