summaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-09-16 21:18:22 +0000
committerDan Gohman <gohman@apple.com>2008-09-16 21:18:22 +0000
commitaed48bfee87046f40330fc35d17265dd3aaf5dd5 (patch)
treeffb9062b3f946542933aadbb88a2bbe9e2de57e7 /lib/CodeGen
parent9468a9b6beed640eca64274c8dcc5aed3b94450b (diff)
downloadllvm-aed48bfee87046f40330fc35d17265dd3aaf5dd5.tar.gz
llvm-aed48bfee87046f40330fc35d17265dd3aaf5dd5.tar.bz2
llvm-aed48bfee87046f40330fc35d17265dd3aaf5dd5.tar.xz
Include the alignment value when displaying ConstantPoolSDNodes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56250 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
index aca115fd84..8e3247fb67 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
@@ -158,6 +158,7 @@ std::string DOTGraphTraits<SelectionDAG*>::getNodeLabel(const SDNode *Node,
Op += '>';
}
}
+ Op += " A=" + itostr(1 << CP->getAlignment());
} else if (const BasicBlockSDNode *BBDN = dyn_cast<BasicBlockSDNode>(Node)) {
Op = "BB: ";
const Value *LBB = (const Value*)BBDN->getBasicBlock()->getBasicBlock();