Don't print extra spaces in vector and array constants. This makes
them visually more consistent with vector and array types. llvm-svn: 64267
This commit is contained in:
parent
3a7796bccc
commit
1262a25683
|
@ -727,7 +727,6 @@ static void WriteConstantInt(raw_ostream &Out, const Constant *CV,
|
||||||
} else { // Cannot output in string format...
|
} else { // Cannot output in string format...
|
||||||
Out << '[';
|
Out << '[';
|
||||||
if (CA->getNumOperands()) {
|
if (CA->getNumOperands()) {
|
||||||
Out << ' ';
|
|
||||||
printTypeInt(Out, ETy, TypeTable);
|
printTypeInt(Out, ETy, TypeTable);
|
||||||
Out << ' ';
|
Out << ' ';
|
||||||
WriteAsOperandInternal(Out, CA->getOperand(0),
|
WriteAsOperandInternal(Out, CA->getOperand(0),
|
||||||
|
@ -738,7 +737,6 @@ static void WriteConstantInt(raw_ostream &Out, const Constant *CV,
|
||||||
Out << ' ';
|
Out << ' ';
|
||||||
WriteAsOperandInternal(Out, CA->getOperand(i), TypeTable, Machine);
|
WriteAsOperandInternal(Out, CA->getOperand(i), TypeTable, Machine);
|
||||||
}
|
}
|
||||||
Out << ' ';
|
|
||||||
}
|
}
|
||||||
Out << ']';
|
Out << ']';
|
||||||
}
|
}
|
||||||
|
@ -777,7 +775,7 @@ static void WriteConstantInt(raw_ostream &Out, const Constant *CV,
|
||||||
const Type *ETy = CP->getType()->getElementType();
|
const Type *ETy = CP->getType()->getElementType();
|
||||||
assert(CP->getNumOperands() > 0 &&
|
assert(CP->getNumOperands() > 0 &&
|
||||||
"Number of operands for a PackedConst must be > 0");
|
"Number of operands for a PackedConst must be > 0");
|
||||||
Out << "< ";
|
Out << '<';
|
||||||
printTypeInt(Out, ETy, TypeTable);
|
printTypeInt(Out, ETy, TypeTable);
|
||||||
Out << ' ';
|
Out << ' ';
|
||||||
WriteAsOperandInternal(Out, CP->getOperand(0), TypeTable, Machine);
|
WriteAsOperandInternal(Out, CP->getOperand(0), TypeTable, Machine);
|
||||||
|
@ -787,7 +785,7 @@ static void WriteConstantInt(raw_ostream &Out, const Constant *CV,
|
||||||
Out << ' ';
|
Out << ' ';
|
||||||
WriteAsOperandInternal(Out, CP->getOperand(i), TypeTable, Machine);
|
WriteAsOperandInternal(Out, CP->getOperand(i), TypeTable, Machine);
|
||||||
}
|
}
|
||||||
Out << " >";
|
Out << '>';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue