[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp SelectionDAGPrinter.cpp
Evan Cheng
evan.cheng at apple.com
Tue Oct 31 20:48:44 PST 2006
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAG.cpp updated: 1.363 -> 1.364
SelectionDAGPrinter.cpp updated: 1.41 -> 1.42
---
Log message:
Print jumptable index.
---
Diffs of the changes: (+4 -0)
SelectionDAG.cpp | 2 ++
SelectionDAGPrinter.cpp | 2 ++
2 files changed, 4 insertions(+)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.363 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.364
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.363 Mon Oct 30 01:59:36 2006
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Tue Oct 31 22:48:30 2006
@@ -2851,6 +2851,8 @@
std::cerr << " " << offset;
} else if (const FrameIndexSDNode *FIDN = dyn_cast<FrameIndexSDNode>(this)) {
std::cerr << "<" << FIDN->getIndex() << ">";
+ } else if (const JumpTableSDNode *JTDN = dyn_cast<JumpTableSDNode>(this)) {
+ std::cerr << "<" << JTDN->getIndex() << ">";
} else if (const ConstantPoolSDNode *CP = dyn_cast<ConstantPoolSDNode>(this)){
int offset = CP->getOffset();
if (CP->isMachineConstantPoolEntry())
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp:1.41 llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp:1.42
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp:1.41 Fri Oct 20 13:06:09 2006
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp Tue Oct 31 22:48:30 2006
@@ -105,6 +105,8 @@
Op += itostr(offset);
} else if (const FrameIndexSDNode *FIDN = dyn_cast<FrameIndexSDNode>(Node)) {
Op += " " + itostr(FIDN->getIndex());
+ } else if (const JumpTableSDNode *JTDN = dyn_cast<JumpTableSDNode>(Node)) {
+ Op += " " + itostr(JTDN->getIndex());
} else if (const ConstantPoolSDNode *CP = dyn_cast<ConstantPoolSDNode>(Node)){
if (CP->isMachineConstantPoolEntry()) {
std::ostringstream SS;
More information about the llvm-commits
mailing list