map<const Type *, string> TypeNames;
fillTypeNameTable(M, TypeNames);
- return printTypeInt(Out, V->getType(), TypeNames);
+ return printTypeInt(Out, Ty, TypeNames);
} else {
- return Out << V->getType()->getDescription();
+ return Out << Ty->getDescription();
}
}
//
ostream &WriteAsOperand(ostream &Out, const Value *V, bool PrintType,
bool PrintName, SlotCalculator *Table) {
- if (PrintType) {
- WriteTypeSymbolic(Ty, getModuleFromVal(V));
- }
+ if (PrintType)
+ WriteTypeSymbolic(Out, V->getType(), getModuleFromVal(V));
WriteAsOperandInternal(Out, V, PrintName, Table);
return Out;