mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Make sure to print opaque types names if they are available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9597 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0faadf2e58
commit
daf2a492a7
@ -203,12 +203,16 @@ static std::ostream &printTypeInt(std::ostream &Out, const Type *Ty,
|
||||
// Primitive types always print out their description, regardless of whether
|
||||
// they have been named or not.
|
||||
//
|
||||
if (Ty->isPrimitiveType()) return Out << Ty->getDescription();
|
||||
if (Ty->isPrimitiveType() && !isa<OpaqueType>(Ty))
|
||||
return Out << Ty->getDescription();
|
||||
|
||||
// Check to see if the type is named.
|
||||
std::map<const Type *, std::string>::iterator I = TypeNames.find(Ty);
|
||||
if (I != TypeNames.end()) return Out << I->second;
|
||||
|
||||
if (isa<OpaqueType>(Ty))
|
||||
return Out << "opaque";
|
||||
|
||||
// Otherwise we have a type that has not been named but is a derived type.
|
||||
// Carefully recurse the type hierarchy to print out any contained symbolic
|
||||
// names.
|
||||
|
Loading…
Reference in New Issue
Block a user