mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-03 14:31:10 +00:00
Fix blatent bugs in checkin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1032 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
207b5bc6a1
commit
7b8660d72f
@ -231,9 +231,9 @@ ostream &WriteTypeSymbolic(ostream &Out, const Type *Ty, const Module *M) {
|
|||||||
map<const Type *, string> TypeNames;
|
map<const Type *, string> TypeNames;
|
||||||
fillTypeNameTable(M, TypeNames);
|
fillTypeNameTable(M, TypeNames);
|
||||||
|
|
||||||
return printTypeInt(Out, V->getType(), TypeNames);
|
return printTypeInt(Out, Ty, TypeNames);
|
||||||
} else {
|
} else {
|
||||||
return Out << V->getType()->getDescription();
|
return Out << Ty->getDescription();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -244,9 +244,8 @@ ostream &WriteTypeSymbolic(ostream &Out, const Type *Ty, const Module *M) {
|
|||||||
//
|
//
|
||||||
ostream &WriteAsOperand(ostream &Out, const Value *V, bool PrintType,
|
ostream &WriteAsOperand(ostream &Out, const Value *V, bool PrintType,
|
||||||
bool PrintName, SlotCalculator *Table) {
|
bool PrintName, SlotCalculator *Table) {
|
||||||
if (PrintType) {
|
if (PrintType)
|
||||||
WriteTypeSymbolic(Ty, getModuleFromVal(V));
|
WriteTypeSymbolic(Out, V->getType(), getModuleFromVal(V));
|
||||||
}
|
|
||||||
|
|
||||||
WriteAsOperandInternal(Out, V, PrintName, Table);
|
WriteAsOperandInternal(Out, V, PrintName, Table);
|
||||||
return Out;
|
return Out;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user