From a23b3b803e3c65e84d6cadaa221de8b256cbe28d Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 13 Nov 2008 21:21:28 +0000 Subject: Change ScheduleDAG's DAG member from a reference to a pointer, to prepare for the possibility of scheduling without a SelectionDAG being present. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59263 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp') diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index 9cca672046..22791d3dc7 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -387,7 +387,7 @@ namespace llvm { template<> struct DOTGraphTraits : public DefaultDOTGraphTraits { static std::string getGraphName(const ScheduleDAG *G) { - return DOTGraphTraits::getGraphName(&G->DAG); + return DOTGraphTraits::getGraphName(G->DAG); } static bool renderGraphFromBottomUp() { @@ -421,7 +421,7 @@ namespace llvm { static void addCustomGraphFeatures(ScheduleDAG *G, GraphWriter &GW) { GW.emitSimpleNode(0, "plaintext=circle", "GraphRoot"); - const SDNode *N = G->DAG.getRoot().getNode(); + const SDNode *N = G->DAG->getRoot().getNode(); if (N && N->getNodeId() != -1) GW.emitEdge(0, -1, &G->SUnits[N->getNodeId()], -1, "color=blue,style=dashed"); @@ -435,11 +435,11 @@ std::string DOTGraphTraits::getNodeLabel(const SUnit *SU, for (unsigned i = 0; i < SU->FlaggedNodes.size(); ++i) { Op += DOTGraphTraits::getNodeLabel(SU->FlaggedNodes[i], - &G->DAG) + "\n"; + G->DAG) + "\n"; } if (SU->Node) - Op += DOTGraphTraits::getNodeLabel(SU->Node, &G->DAG); + Op += DOTGraphTraits::getNodeLabel(SU->Node, G->DAG); else Op += ""; -- cgit v1.2.3