diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-02-26 08:36:57 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-02-26 08:36:57 +0000 |
commit | 38b7327ec02fbc6f163905ac85ea55d357dece51 (patch) | |
tree | 73e6fb946230fc43fe8b2b02513b8b130bac2f66 /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | a09bd8190cf5ae29c720021738b370d93f404ac1 (diff) |
Print ConstantPoolSDNode offset field.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26381 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 8b930948d2..af77194651 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/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(); |