don't use the result of WriteTypeSymbolic or WriteAsOperand.
authorChris Lattner <sabre@nondot.org>
Tue, 19 Aug 2008 04:44:30 +0000 (04:44 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 19 Aug 2008 04:44:30 +0000 (04:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54978 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index 380b3bc21433ca7eab85145db5c67de9a74ee36b..2eccc36ccfedcc4340354d33adff5ffd64eb5066 100644 (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
index c372874957795e5f92f263fecc2fc5b2619339a2..711045d9f7dc00eed4e1a17529195e3bd9d51fe5 100644 (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