mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 21:30:49 +00:00
Print out nodes sorted by their address to make it easier to find them in a list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19421 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bd9f0eefb2
commit
49d24716a4
@ -922,9 +922,12 @@ void SDNode::dump() const {
|
||||
|
||||
void SelectionDAG::dump() const {
|
||||
std::cerr << "SelectionDAG has " << AllNodes.size() << " nodes:";
|
||||
for (unsigned i = 0, e = AllNodes.size(); i != e; ++i) {
|
||||
std::vector<SDNode*> Nodes(AllNodes);
|
||||
std::sort(Nodes.begin(), Nodes.end());
|
||||
|
||||
for (unsigned i = 0, e = Nodes.size(); i != e; ++i) {
|
||||
std::cerr << "\n ";
|
||||
AllNodes[i]->dump();
|
||||
Nodes[i]->dump();
|
||||
}
|
||||
std::cerr << "\n\n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user