mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-21 19:36:59 +00:00
Support opaque type printing a little bit at least
llvm-svn: 2748
This commit is contained in:
parent
3611a1e91c
commit
365806ddf7
@ -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