summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-08-19 04:44:30 +0000
committerChris Lattner <sabre@nondot.org>2008-08-19 04:44:30 +0000
commit5d2a9a4ae67ed473c09ddc2d10e6094f3cd2217e (patch)
tree0ad7247fbbe99fd1205c81d2074437283dbb80c0 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parentbe1309058ac49edd56ac9f789e9944e153670685 (diff)
downloadbcm5719-llvm-5d2a9a4ae67ed473c09ddc2d10e6094f3cd2217e.tar.gz
bcm5719-llvm-5d2a9a4ae67ed473c09ddc2d10e6094f3cd2217e.zip
don't use the result of WriteTypeSymbolic or WriteAsOperand.
llvm-svn: 54978
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index c3728749577..711045d9f7d 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -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
OpenPOWER on IntegriCloud