mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
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
This commit is contained in:
parent
bd8619d3ef
commit
9e77f77687
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user