Add a marker for the graph root.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19445 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-01-10 23:52:04 +00:00
parent e0646b86e3
commit fc08d9c789

View File

@ -32,6 +32,12 @@ namespace llvm {
static std::string getNodeAttributes(const SDNode *N) {
return "shape=Mrecord";
}
static void addCustomGraphFeatures(SelectionDAG *G,
GraphWriter<SelectionDAG*> &GW) {
GW.emitSimpleNode(0, "plaintext=circle", "GraphRoot");
GW.emitEdge(0, -1, G->getRoot().Val, -1, "");
}
};
}