[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Evan Cheng evan.cheng at apple.com
Sun Feb 26 00:37:09 PST 2006



Changes in directory llvm/lib/CodeGen/SelectionDAG:

SelectionDAG.cpp updated: 1.260 -> 1.261
---
Log message:

Print ConstantPoolSDNode offset field.


---
Diffs of the changes:  (+5 -0)

 SelectionDAG.cpp |    5 +++++
 1 files changed, 5 insertions(+)


Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.260 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.261
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.260	Sat Feb 25 03:53:49 2006
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp	Sun Feb 26 02:36:57 2006
@@ -2761,7 +2761,12 @@
   } 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();






More information about the llvm-commits mailing list