Print Mod/ref info
authorChris Lattner <sabre@nondot.org>
Thu, 17 Oct 2002 22:13:28 +0000 (22:13 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 17 Oct 2002 22:13:28 +0000 (22:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4224 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/Printer.cpp

index dade3f750a51ef43ba81d7d7c75f5e364e544006..8b29c1c6c0ba02e6a4c1b04dae76724844423c1e 100644 (file)
@@ -39,6 +39,8 @@ static string getCaption(const DSNode *N, const DSGraph *G) {
   if (N->NodeType & DSNode::NewNode   ) OS << "N";
   if (N->NodeType & DSNode::GlobalNode) OS << "G";
   if (N->NodeType & DSNode::Incomplete) OS << "I";
+  if (N->NodeType & DSNode::Modified  ) OS << "M";
+  if (N->NodeType & DSNode::Read      ) OS << "R";
 
   for (unsigned i = 0, e = N->getGlobals().size(); i != e; ++i) {
     WriteAsOperand(OS, N->getGlobals()[i], false, true, M);