summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-02-26 08:36:57 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-02-26 08:36:57 +0000
commit9f9662b86edc018f25741198299268ad6fad4516 (patch)
tree6dc15778282a6e07d460df512fb001b156dac605 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent75b8783aaf208a744577052f5c266bfd5e2d81f3 (diff)
downloadbcm5719-llvm-9f9662b86edc018f25741198299268ad6fad4516.tar.gz
bcm5719-llvm-9f9662b86edc018f25741198299268ad6fad4516.zip
Print ConstantPoolSDNode offset field.
llvm-svn: 26381
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 8b930948d2a..af771946511 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -2761,7 +2761,12 @@ void SDNode::dump(const SelectionDAG *G) const {
} else if (const FrameIndexSDNode *FIDN = dyn_cast<FrameIndexSDNode>(this)) {
std::cerr << "<" << FIDN->getIndex() << ">";
} else if (const ConstantPoolSDNode *CP = dyn_cast<ConstantPoolSDNode>(this)){
+ int offset = CP->getOffset();
std::cerr << "<" << *CP->get() << ">";
+ if (offset > 0)
+ std::cerr << " + " << offset;
+ else
+ std::cerr << " " << offset;
} else if (const BasicBlockSDNode *BBDN = dyn_cast<BasicBlockSDNode>(this)) {
std::cerr << "<";
const Value *LBB = (const Value*)BBDN->getBasicBlock()->getBasicBlock();
OpenPOWER on IntegriCloud