don't use the result of WriteTypeSymbolic or WriteAsOperand.

llvm-svn: 54978
This commit is contained in:
Chris Lattner 2008-08-19 04:44:30 +00:00
parent be1309058a
commit 5d2a9a4ae6
2 changed files with 8 additions and 6 deletions

View File

@ -269,7 +269,8 @@ void AsmPrinter::EmitConstantPool(unsigned Alignment, const char *Section,
for (unsigned i = 0, e = CP.size(); i != e; ++i) {
O << TAI->getPrivateGlobalPrefix() << "CPI" << getFunctionNumber() << '_'
<< CP[i].second << ":\t\t\t\t\t" << TAI->getCommentString() << ' ';
WriteTypeSymbolic(O, CP[i].first.getType(), 0) << '\n';
WriteTypeSymbolic(O, CP[i].first.getType(), 0);
O << '\n';
if (CP[i].first.isMachineConstantPoolEntry())
EmitMachineConstantPoolValue(CP[i].first.Val.MachineCPVal);
else

View File

@ -4992,12 +4992,12 @@ void SDNode::dump(const SelectionDAG *G) const {
}
if (const ConstantSDNode *CSDN = dyn_cast<ConstantSDNode>(this)) {
cerr << "<" << CSDN->getAPIntValue() << ">";
cerr << '<' << CSDN->getAPIntValue() << '>';
} else if (const ConstantFPSDNode *CSDN = dyn_cast<ConstantFPSDNode>(this)) {
if (&CSDN->getValueAPF().getSemantics()==&APFloat::IEEEsingle)
cerr << "<" << CSDN->getValueAPF().convertToFloat() << ">";
cerr << '<' << CSDN->getValueAPF().convertToFloat() << '>';
else if (&CSDN->getValueAPF().getSemantics()==&APFloat::IEEEdouble)
cerr << "<" << CSDN->getValueAPF().convertToDouble() << ">";
cerr << '<' << CSDN->getValueAPF().convertToDouble() << '>';
else {
cerr << "<APFloat(";
CSDN->getValueAPF().convertToAPInt().dump();
@ -5006,8 +5006,9 @@ void SDNode::dump(const SelectionDAG *G) const {
} else if (const GlobalAddressSDNode *GADN =
dyn_cast<GlobalAddressSDNode>(this)) {
int offset = GADN->getOffset();
cerr << "<";
WriteAsOperand(*cerr.stream(), GADN->getGlobal()) << ">";
cerr << '<';
WriteAsOperand(*cerr.stream(), GADN->getGlobal());
cerr << '>';
if (offset > 0)
cerr << " + " << offset;
else