From: Chris Lattner Date: Tue, 19 Aug 2008 04:44:30 +0000 (+0000) Subject: don't use the result of WriteTypeSymbolic or WriteAsOperand. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=65a7bd8b8e111c51a51278ab46f1a1c91744441b;p=oota-llvm.git don't use the result of WriteTypeSymbolic or WriteAsOperand. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54978 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 380b3bc2143..2eccc36ccfe 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -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 diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index c3728749577..711045d9f7d 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -4992,12 +4992,12 @@ void SDNode::dump(const SelectionDAG *G) const { } if (const ConstantSDNode *CSDN = dyn_cast(this)) { - cerr << "<" << CSDN->getAPIntValue() << ">"; + cerr << '<' << CSDN->getAPIntValue() << '>'; } else if (const ConstantFPSDNode *CSDN = dyn_cast(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 << "getValueAPF().convertToAPInt().dump(); @@ -5006,8 +5006,9 @@ void SDNode::dump(const SelectionDAG *G) const { } else if (const GlobalAddressSDNode *GADN = dyn_cast(this)) { int offset = GADN->getOffset(); - cerr << "<"; - WriteAsOperand(*cerr.stream(), GADN->getGlobal()) << ">"; + cerr << '<'; + WriteAsOperand(*cerr.stream(), GADN->getGlobal()); + cerr << '>'; if (offset > 0) cerr << " + " << offset; else