mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-11 13:44:28 +00:00
When you hand WriteAsOperand a type, it now prints out its symbolic name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10042 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9cebe2d83b
commit
cd4a398c25
@ -458,6 +458,9 @@ std::ostream &WriteAsOperand(std::ostream &Out, const Value *V, bool PrintType,
|
||||
if (PrintType)
|
||||
printTypeInt(Out, V->getType(), TypeNames);
|
||||
|
||||
if (const Type *Ty = dyn_cast<Type> (V))
|
||||
printTypeInt(Out, Ty, TypeNames);
|
||||
|
||||
WriteAsOperandInternal(Out, V, PrintName, TypeNames, 0);
|
||||
return Out;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user